org.apache.commons.fileupload.FileItemFactorypublic class MemoryFileItemFactory
extends java.lang.Object
implements org.apache.commons.fileupload.FileItemFactory
FileItemFactory interface.| Constructor | Description |
|---|---|
MemoryFileItemFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.commons.fileupload.FileItem |
createItem(java.lang.String fieldName,
java.lang.String contentType,
boolean isFormField,
java.lang.String fileName) |
Create a new
MemoryFileItem instance from the supplied parameters
and the local factory configuration. |
int |
getSizeThreshold() |
Returns the size threshold for storing data in memory.
|
void |
setSizeThreshold(int sizeThreshold) |
Sets the size threshold for storing data in memory.
|
public org.apache.commons.fileupload.FileItem createItem(java.lang.String fieldName,
java.lang.String contentType,
boolean isFormField,
java.lang.String fileName)
MemoryFileItem instance from the supplied parameters
and the local factory configuration.createItem in interface org.apache.commons.fileupload.FileItemFactoryfieldName - the name of the form fieldcontentType - the content type of the form fieldisFormField - true if this is a plain form field; false otherwisefileName - the name of the uploaded file, if any, as supplied by the browser or other clientpublic void setSizeThreshold(int sizeThreshold)
MemoryFileItem will throw an error.sizeThreshold - the size threshold, in bytesgetSizeThreshold()public int getSizeThreshold()
setSizeThreshold(int)Copyright © 2008–2018 The Aspectran Project. All rights reserved.