FileUploadBase#getItemIterator(RequestContext).
| Modifier and Type | Field and Description |
|---|---|
| private final RequestContext | ctx
The request context. |
| private String | currentFieldName
The current items field name. |
| private FileItemStreamImpl | currentItem
The item, which we currently process. |
| private boolean | eof
Whether we have seen the end of the file. |
| private long | fileSizeMax
The maximum allowed size of a single uploaded file. |
| private final FileUploadBase | fileUploadBase
The file uploads processing utility. |
| private boolean | itemValid
Whether the current item may still be read. |
| private byte[] | multiPartBoundary
The boundary, which separates the various parts. |
| private MultipartStream | multiPartStream
The multi part stream to process. |
| private MultipartStream. | progressNotifier
The notifier, which used for triggering the
|
| private long | sizeMax
The maximum allowed size of a complete request. |
| private boolean | skipPreamble
Whether we are currently skipping the preamble. |
| Access | Constructor and Description |
|---|---|
| public | FileItemIteratorImpl(final FileUploadBase
Main processor. fileUploadBase, final RequestContext The request context. requestContext)Creates a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | Returns: True, if an next item was found, otherwise false.Called for finding the next item, if any. |
| private long | |
| public List | |
| public long | getFileSizeMax()
Implements org. Returns the maximum size of a single file. |
| public MultipartStream | |
| public long | getSizeMax()
Implements org. Returns the maximum size of the complete HTTP request. |
| public boolean | Returns: True, if one or more additional file items are available, otherwise false.Implements org. Returns, whether another instance of |
| protected void | |
| public FileItemStream | Returns: FileItemStream instance, which provides access to the next file item.Implements org. Returns the next available |
| public void | setFileSizeMax(final long
The maximum size of a single, uploaded file. The value -1 indicates "unlimited". fileSizeMax)Implements org. Sets the maximum size of a single file. |
| public void | setSizeMax(final long
The maximum size of the complete HTTP request. The value -1 indicates "unlimited". sizeMax)Implements org. Returns the maximum size of the complete HTTP request. |
| ctx | back to summary |
|---|---|
| private final RequestContext ctx The request context.
| |
| currentFieldName | back to summary |
|---|---|
| private String currentFieldName The current items field name. | |
| currentItem | back to summary |
|---|---|
| private FileItemStreamImpl currentItem The item, which we currently process. | |
| eof | back to summary |
|---|---|
| private boolean eof Whether we have seen the end of the file. | |
| fileSizeMax | back to summary |
|---|---|
| private long fileSizeMax The maximum allowed size of a single uploaded file. | |
| fileUploadBase | back to summary |
|---|---|
| private final FileUploadBase fileUploadBase The file uploads processing utility.
| |
| itemValid | back to summary |
|---|---|
| private boolean itemValid Whether the current item may still be read. | |
| multiPartBoundary | back to summary |
|---|---|
| private byte[] multiPartBoundary The boundary, which separates the various parts. | |
| multiPartStream | back to summary |
|---|---|
| private MultipartStream multiPartStream The multi part stream to process. | |
| progressNotifier | back to summary |
|---|---|
| private MultipartStream. The notifier, which used for triggering the
| |
| sizeMax | back to summary |
|---|---|
| private long sizeMax The maximum allowed size of a complete request. | |
| skipPreamble | back to summary |
|---|---|
| private boolean skipPreamble Whether we are currently skipping the preamble. | |
| FileItemIteratorImpl | back to summary |
|---|---|
| public FileItemIteratorImpl(final FileUploadBase fileUploadBase, final RequestContext requestContext) throws FileUploadException, IOException Creates a new instance.
| |
| findNextItem | back to summary |
|---|---|
| private boolean findNextItem() throws FileUploadException, IOException Called for finding the next item, if any.
| |
| getContentLength | back to summary |
|---|---|
| private long getContentLength(final FileItemHeaders pHeaders) | |
| getFileItems | back to summary |
|---|---|
| public List Implements org.
| |
| getFileSizeMax | back to summary |
|---|---|
| public long getFileSizeMax() Implements org. Doc from org. Returns the maximum size of a single file. An
| |
| getMultiPartStream | back to summary |
|---|---|
| public MultipartStream getMultiPartStream() throws FileUploadException, IOException | |
| getSizeMax | back to summary |
|---|---|
| public long getSizeMax() Implements org. Doc from org. Returns the maximum size of the complete HTTP request. A
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() throws FileUploadException, IOException Implements org. Returns, whether another instance of
| |
| init | back to summary |
|---|---|
| protected void init(final FileUploadBase fileUploadBase, final RequestContext pRequestContext) throws FileUploadException, IOException | |
| next | back to summary |
|---|---|
| public FileItemStream next() throws FileUploadException, IOException Implements org. Returns the next available
| |
| setFileSizeMax | back to summary |
|---|---|
| public void setFileSizeMax(final long fileSizeMax) Implements org. Doc from org. Sets the maximum size of a single file. An Note Changing this value doesn't affect files, that have already been uploaded.
| |
| setSizeMax | back to summary |
|---|---|
| public void setSizeMax(final long sizeMax) Implements org. Doc from org. Returns the maximum size of the complete HTTP request. A Note Setting the maximum size on this object will work only, if the iterator is not
yet initialized. In other words: If the methods
| |