Package fr.paris.lutece.util.httpaccess
Class MemoryFileItem
java.lang.Object
fr.paris.lutece.util.httpaccess.MemoryFileItem
- All Implemented Interfaces:
fr.paris.lutece.portal.service.upload.MultipartItem
public class MemoryFileItem
extends Object
implements fr.paris.lutece.portal.service.upload.MultipartItem
MemoryFileItem
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryFileItem(byte[] data, String strName, long lSize, String strContentType) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()byte[]get()Not supportedgetName()longgetSize()booleanbooleanvoidsetFieldName(String strFieldName) voidsetFormField(boolean state)
-
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 interfacefr.paris.lutece.portal.service.upload.MultipartItem
-
get
public byte[] get()- Specified by:
getin interfacefr.paris.lutece.portal.service.upload.MultipartItem
-
getContentType
- Specified by:
getContentTypein interfacefr.paris.lutece.portal.service.upload.MultipartItem
-
getFieldName
Not supported- Specified by:
getFieldNamein interfacefr.paris.lutece.portal.service.upload.MultipartItem- Returns:
- null
-
getInputStream
- Specified by:
getInputStreamin interfacefr.paris.lutece.portal.service.upload.MultipartItem- Throws:
IOException
-
getName
- Specified by:
getNamein interfacefr.paris.lutece.portal.service.upload.MultipartItem
-
getSize
public long getSize()- Specified by:
getSizein interfacefr.paris.lutece.portal.service.upload.MultipartItem
-
getString
-
getString
- Throws:
UnsupportedEncodingException
-
isFormField
public boolean isFormField() -
isInMemory
public boolean isInMemory() -
setFieldName
-
setFormField
public void setFormField(boolean state)
-