public static class DiskFileItemFactory.MemoryFileItem extends FileItemBase
| 构造器和说明 |
|---|
MemoryFileItem(FileItemStream stream) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deleteOrSkip()
Deletes the underlying storage for a file item, including deleting any
associated temporary disk file.
|
long |
getSize()
Returns the size of the file item.
|
InputStream |
openStream()
Creates an
InputStream, which allows to read the items contents. |
get, getContentType, getFieldName, getHeaders, getName, getString, getString, isFormField, writeTo, writeTopublic MemoryFileItem(FileItemStream stream) throws IOException
IOExceptionpublic long getSize()
FileItempublic void deleteOrSkip()
FileItemFileItem instance is garbage
collected, this method can be used to ensure that this is done at an
earlier time, thus preserving system resources.public InputStream openStream() throws IOException
FileItemStreamInputStream, which allows to read the items contents.IOException - An I/O error occurred.