Package org.apache.commons.fileupload
Interface FileItemIterator
public interface FileItemIterator
An iterator, as returned by
FileUploadBase.getItemIterator(RequestContext)
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
Returns, whether another instance ofFileItemStream
is available.next()
Returns the next availableFileItemStream
.
-
Method Details
-
hasNext
Returns, whether another instance ofFileItemStream
is available.- Returns:
- True, if one or more additional file items are available, otherwise false.
- Throws:
FileUploadException
- Parsing or processing the file item failed.IOException
- Reading the file item failed.
-
next
Returns the next availableFileItemStream
.- Returns:
- FileItemStream instance, which provides access to the next file item.
- Throws:
NoSuchElementException
- No more items are available. UsehasNext()
to prevent this exception.FileUploadException
- Parsing or processing the file item failed.IOException
- Reading the file item failed.
-