FileItemStream.
| Modifier and Type | Field and Description |
|---|---|
| private final String | contentType
The file items content type. |
| private final String | fieldName
The file items field name. |
| private final FileItemIteratorImpl | fileItemIteratorImpl
The File Item iterator implementation. |
| private final boolean | formField
Whether the file item is a form field. |
| private FileItemHeaders | headers
The headers, if any. |
| private final String | name
The file items file name. |
| private final InputStream | stream
The file items input stream. |
| Access | Constructor and Description |
|---|---|
| public | FileItemStreamImpl(final FileItemIteratorImpl
The pFileItemIterator, final String iterator, which returned this file
item.The items file name, or null. pName, final String The items field name. pFieldName, final String The items content type, or null. pContentType, final boolean Whether the item is a form field. pFormField, final long The items content length, if known, or -1 pContentLength)Creates a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | Returns: Content type, if known, or null.Implements org. Returns the items content type, or null. |
| public String | Returns: Field name.Implements org. Returns the items field name. |
| public FileItemHeaders | Returns: The items header objectImplements org. Returns the file item headers. |
| public String | Returns: File name, if known, or null.Implements org. Returns the items file name. |
| public boolean | Returns: True, if the item is a form field, otherwise false.Implements org. Returns, whether this is a form field. |
| public InputStream | Returns: Opened input stream.Implements org. Returns an input stream, which may be used to read the items contents. |
| public void | setHeaders(final FileItemHeaders
The items header object pHeaders)Implements org. Sets the file item headers. |
| contentType | back to summary |
|---|---|
| private final String contentType The file items content type. | |
| fieldName | back to summary |
|---|---|
| private final String fieldName The file items field name. | |
| fileItemIteratorImpl | back to summary |
|---|---|
| private final FileItemIteratorImpl fileItemIteratorImpl The File Item iterator implementation.
| |
| formField | back to summary |
|---|---|
| private final boolean formField Whether the file item is a form field. | |
| headers | back to summary |
|---|---|
| private FileItemHeaders headers The headers, if any. | |
| name | back to summary |
|---|---|
| private final String name The file items file name. | |
| stream | back to summary |
|---|---|
| private final InputStream stream The file items input stream. | |
| FileItemStreamImpl | back to summary |
|---|---|
| public FileItemStreamImpl(final FileItemIteratorImpl pFileItemIterator, final String pName, final String pFieldName, final String pContentType, final boolean pFormField, final long pContentLength) throws FileUploadException, IOException Creates a new instance.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Closes the file item.
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Implements org. Returns the items content type, or null. | |
| getFieldName | back to summary |
|---|---|
| public String getFieldName() Implements org. Returns the items field name. | |
| getHeaders | back to summary |
|---|---|
| public FileItemHeaders getHeaders() Implements org. Returns the file item headers.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Returns the items file name.
| |
| isFormField | back to summary |
|---|---|
| public boolean isFormField() Implements org. Returns, whether this is a form field.
| |
| openStream | back to summary |
|---|---|
| public InputStream openStream() throws IOException Implements org. Returns an input stream, which may be used to read the items contents.
| |
| setHeaders | back to summary |
|---|---|
| public void setHeaders(final FileItemHeaders pHeaders) Implements org. Sets the file item headers.
| |