Package fr.paris.lutece.util.httpaccess
Class MemoryFileItem
java.lang.Object
fr.paris.lutece.util.httpaccess.MemoryFileItem
- All Implemented Interfaces:
org.apache.commons.fileupload.FileItem,org.apache.commons.fileupload.FileItemHeadersSupport
MemoryFileItem
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryFileItem(byte[] data, String strName, long lSize, String strContentType) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()byte[]get()Not supportedorg.apache.commons.fileupload.FileItemHeadersgetName()longgetSize()booleanbooleanvoidsetFieldName(String strFieldName) voidsetFormField(boolean state) voidsetHeaders(org.apache.commons.fileupload.FileItemHeaders headers) void
-
Constructor Details
-
MemoryFileItem
Constructor- Parameters:
data- the datastrName- the file namelSize- the size of the filestrContentType- the content type of the file
-
-
Method Details
-
delete
public void delete()- Specified by:
deletein interfaceorg.apache.commons.fileupload.FileItem
-
get
public byte[] get()- Specified by:
getin interfaceorg.apache.commons.fileupload.FileItem
-
getContentType
- Specified by:
getContentTypein interfaceorg.apache.commons.fileupload.FileItem
-
getFieldName
Not supported- Specified by:
getFieldNamein interfaceorg.apache.commons.fileupload.FileItem- Returns:
- null
-
getInputStream
- Specified by:
getInputStreamin interfaceorg.apache.commons.fileupload.FileItem- Throws:
IOException
-
getName
- Specified by:
getNamein interfaceorg.apache.commons.fileupload.FileItem
-
getOutputStream
- Specified by:
getOutputStreamin interfaceorg.apache.commons.fileupload.FileItem- Throws:
IOException
-
getSize
public long getSize()- Specified by:
getSizein interfaceorg.apache.commons.fileupload.FileItem
-
getString
- Specified by:
getStringin interfaceorg.apache.commons.fileupload.FileItem
-
getString
- Specified by:
getStringin interfaceorg.apache.commons.fileupload.FileItem- Throws:
UnsupportedEncodingException
-
isFormField
public boolean isFormField()- Specified by:
isFormFieldin interfaceorg.apache.commons.fileupload.FileItem
-
isInMemory
public boolean isInMemory()- Specified by:
isInMemoryin interfaceorg.apache.commons.fileupload.FileItem
-
setFieldName
- Specified by:
setFieldNamein interfaceorg.apache.commons.fileupload.FileItem
-
setFormField
public void setFormField(boolean state) - Specified by:
setFormFieldin interfaceorg.apache.commons.fileupload.FileItem
-
write
- Specified by:
writein interfaceorg.apache.commons.fileupload.FileItem- Throws:
Exception
-
getHeaders
public org.apache.commons.fileupload.FileItemHeaders getHeaders()- Specified by:
getHeadersin interfaceorg.apache.commons.fileupload.FileItemHeadersSupport
-
setHeaders
public void setHeaders(org.apache.commons.fileupload.FileItemHeaders headers) - Specified by:
setHeadersin interfaceorg.apache.commons.fileupload.FileItemHeadersSupport
-