public class MemoryFileItem extends Object implements org.apache.commons.fileupload.FileItem
| Constructor and Description |
|---|
MemoryFileItem(byte[] data,
String strName,
long lSize,
String strContentType)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
byte[] |
get() |
String |
getContentType() |
String |
getFieldName()
Not supported
|
org.apache.commons.fileupload.FileItemHeaders |
getHeaders() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
long |
getSize() |
String |
getString() |
String |
getString(String strEncoding) |
boolean |
isFormField() |
boolean |
isInMemory() |
void |
setFieldName(String strFieldName) |
void |
setFormField(boolean state) |
void |
setHeaders(org.apache.commons.fileupload.FileItemHeaders headers) |
void |
write(File file) |
public void delete()
delete in interface org.apache.commons.fileupload.FileItempublic byte[] get()
get in interface org.apache.commons.fileupload.FileItempublic String getContentType()
getContentType in interface org.apache.commons.fileupload.FileItempublic String getFieldName()
getFieldName in interface org.apache.commons.fileupload.FileItempublic InputStream getInputStream() throws IOException
getInputStream in interface org.apache.commons.fileupload.FileItemIOExceptionpublic String getName()
getName in interface org.apache.commons.fileupload.FileItempublic OutputStream getOutputStream() throws IOException
getOutputStream in interface org.apache.commons.fileupload.FileItemIOExceptionpublic long getSize()
getSize in interface org.apache.commons.fileupload.FileItempublic String getString()
getString in interface org.apache.commons.fileupload.FileItempublic String getString(String strEncoding) throws UnsupportedEncodingException
getString in interface org.apache.commons.fileupload.FileItemUnsupportedEncodingExceptionpublic boolean isFormField()
isFormField in interface org.apache.commons.fileupload.FileItempublic boolean isInMemory()
isInMemory in interface org.apache.commons.fileupload.FileItempublic void setFieldName(String strFieldName)
setFieldName in interface org.apache.commons.fileupload.FileItempublic void setFormField(boolean state)
setFormField in interface org.apache.commons.fileupload.FileItempublic void write(File file) throws Exception
write in interface org.apache.commons.fileupload.FileItemExceptionpublic org.apache.commons.fileupload.FileItemHeaders getHeaders()
getHeaders in interface org.apache.commons.fileupload.FileItemHeadersSupportpublic void setHeaders(org.apache.commons.fileupload.FileItemHeaders headers)
setHeaders in interface org.apache.commons.fileupload.FileItemHeadersSupportCopyright © 2017 City of Paris. All rights reserved.