Interface FileItemIterator
- 
- All Known Implementing Classes:
- FileItemIteratorImpl
 
 public interface FileItemIteratorAn iterator, as returned byFileUploadBase.getItemIterator(RequestContext).
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<FileItem>getFileItems()longgetFileSizeMax()Returns the maximum size of a single file.longgetSizeMax()Returns the maximum size of the complete HTTP request.booleanhasNext()Returns, whether another instance ofFileItemStreamis available.FileItemStreamnext()Returns the next availableFileItemStream.voidsetFileSizeMax(long pFileSizeMax)Sets the maximum size of a single file.voidsetSizeMax(long pSizeMax)Returns the maximum size of the complete HTTP request.
 
- 
- 
- 
Method Detail- 
getFileSizeMaxlong getFileSizeMax() Returns the maximum size of a single file. AnFileSizeLimitExceededExceptionwill be thrown, if there is an uploaded file, which is exceeding this value. By default, this value will be copied from theFileUploadBaseobject, however, the user may replace the default value with a request specific value by invokingsetFileSizeMax(long)on this object.- Returns:
- The maximum size of a single, uploaded file. The value -1 indicates "unlimited".
 
 - 
setFileSizeMaxvoid setFileSizeMax(long pFileSizeMax) Sets the maximum size of a single file. AnFileSizeLimitExceededExceptionwill be thrown, if there is an uploaded file, which is exceeding this value. By default, this value will be copied from theFileUploadBaseobject, however, the user may replace the default value with a request specific value by invokingsetFileSizeMax(long)on this object, so there is no need to configure it here. Note:Changing this value doesn't affect files, that have already been uploaded.- Parameters:
- pFileSizeMax- The maximum size of a single, uploaded file. The value -1 indicates "unlimited".
 
 - 
getSizeMaxlong getSizeMax() Returns the maximum size of the complete HTTP request. ASizeLimitExceededExceptionwill be thrown, if the HTTP request will exceed this value. By default, this value will be copied from theFileUploadBaseobject, however, the user may replace the default value with a request specific value by invokingsetSizeMax(long)on this object.- Returns:
- The maximum size of the complete HTTP request. The value -1 indicates "unlimited".
 
 - 
setSizeMaxvoid setSizeMax(long pSizeMax) Returns the maximum size of the complete HTTP request. ASizeLimitExceededExceptionwill be thrown, if the HTTP request will exceed this value. By default, this value will be copied from theFileUploadBaseobject, however, the user may replace the default value with a request specific value by invokingsetSizeMax(long)on this object. Note: Setting the maximum size on this object will work only, if the iterator is not yet initialized. In other words: If the methodshasNext(),next()have not yet been invoked.- Parameters:
- pSizeMax- The maximum size of the complete HTTP request. The value -1 indicates "unlimited".
 
 - 
hasNextboolean 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.
 
 - 
nextFileItemStream 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. Use- hasNext()to prevent this exception.
- FileUploadException- Parsing or processing the file item failed.
- java.io.IOException- Reading the file item failed.
 
 - 
getFileItemsjava.util.List<FileItem> getFileItems() throws FileUploadException, java.io.IOException - Throws:
- FileUploadException
- java.io.IOException
 
 
- 
 
-