Package com.helger.web.fileupload
Interface IFileItemIterator
-
public interface IFileItemIteratorAn iterator, as returned byAbstractFileUploadBase.getItemIterator(IRequestContext).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasNext()Returns, whether another instance ofIFileItemStreamis available.IFileItemStreamnext()Returns the next availableIFileItemStream.
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws FileUploadException, IOExceptionReturns, whether another instance ofIFileItemStreamis 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
@Nonnull IFileItemStream next() throws FileUploadException, IOException
Returns the next availableIFileItemStream.- 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.
-
-