public interface FileItemIterator
FileUploadBase.getItemIterator(RequestContext).| Modifier and Type | Method and Description | 
|---|---|
| List<FileItem> | getFileItems() | 
| long | getFileSizeMax()Returns the maximum size of a single file. | 
| long | getSizeMax()Returns the maximum size of the complete HTTP request. | 
| boolean | hasNext()Returns, whether another instance of  FileItemStreamis available. | 
| FileItemStream | next()Returns the next available  FileItemStream. | 
| void | setFileSizeMax(long pFileSizeMax)Sets the maximum size of a single file. | 
| void | setSizeMax(long pSizeMax)Returns the maximum size of the complete HTTP request. | 
long getFileSizeMax()
FileSizeLimitExceededException
 will be thrown, if there is an uploaded file, which is exceeding this value.
 By default, this value will be copied from the FileUploadBase object, however, the user may replace the default value with a
 request specific value by invoking setFileSizeMax(long) on this object.void setFileSizeMax(long pFileSizeMax)
FileSizeLimitExceededException
 will be thrown, if there is an uploaded file, which is exceeding this value.
 By default, this value will be copied from the FileUploadBase object, however, the user may replace the default value with a
 request specific value by invoking setFileSizeMax(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.pFileSizeMax - The maximum size of a single, uploaded file. The value -1 indicates "unlimited".long getSizeMax()
SizeLimitExceededException
 will be thrown, if the HTTP request will exceed this value.
 By default, this value will be copied from the FileUploadBase object, however, the user may replace the default value with a
 request specific value by invoking setSizeMax(long) on this object.void setSizeMax(long pSizeMax)
SizeLimitExceededException
 will be thrown, if the HTTP request will exceed this value.
 By default, this value will be copied from the FileUploadBase object, however, the user may replace the default value with a
 request specific value by invoking setSizeMax(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 methods hasNext(), next() have not
 yet been invoked.pSizeMax - The maximum size of the complete HTTP request. The value -1 indicates "unlimited".boolean hasNext()
                throws FileUploadException,
                       IOException
FileItemStream
 is available.FileUploadException - Parsing or processing the
   file item failed.IOException - Reading the file item failed.FileItemStream next() throws FileUploadException, IOException
FileItemStream.NoSuchElementException - No more items are available. Use
 hasNext() to prevent this exception.FileUploadException - Parsing or processing the
   file item failed.IOException - Reading the file item failed.List<FileItem> getFileItems() throws FileUploadException, IOException
FileUploadExceptionIOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.