Package org.apache.commons.fileupload
Interface FileItemIterator
-
public interface FileItemIteratorAn iterator, as returned byFileUploadBase.getItemIterator(RequestContext).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasNext()Returns, whether another instance ofFileItemStreamis available.FileItemStreamnext()Returns the next availableFileItemStream.
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws FileUploadException, java.io.IOExceptionReturns, whether another instance ofFileItemStreamis available.- Returns:
- True, if one or more additional file items are available, otherwise false.
- Throws:
FileUploadException- Parsing or processing the file item failed.java.io.IOException- Reading the file item failed.
-
next
FileItemStream next() throws FileUploadException, java.io.IOException
Returns the next availableFileItemStream.- Returns:
- FileItemStream instance, which provides access to the next file item.
- Throws:
java.util.NoSuchElementException- No more items are available. UsehasNext()to prevent this exception.FileUploadException- Parsing or processing the file item failed.java.io.IOException- Reading the file item failed.
-
-