Class GenAttFileItem
java.lang.Object
fr.paris.lutece.plugins.genericattributes.business.GenAttFileItem
- All Implemented Interfaces:
fr.paris.lutece.portal.service.upload.MultipartItem
public class GenAttFileItem
extends Object
implements fr.paris.lutece.portal.service.upload.MultipartItem
GenAttFileItem : builds a new multipartItem
-
Constructor Summary
ConstructorsConstructorDescriptionGenAttFileItem(byte[] bValue, String strFileName) Creates a new file itemGenAttFileItem(byte[] bValue, String strFileName, int nIdResponse, String strOrigin) Creates a new file itemGenAttFileItem(byte[] bValue, String strFileName, String strFieldName, int nIdResponse, String strOrigin) Creates a new file item -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()byte[]get()intGet the id of the associated response, if anygetName()longgetSize()voidsetFieldName(String strName) voidsetIdResponse(int nIdResponse) Set the id of the associated response, if anyvoid
-
Constructor Details
-
GenAttFileItem
Creates a new file item- Parameters:
bValue- the byte valuestrFileName- the file name
-
GenAttFileItem
Creates a new file item- Parameters:
bValue- the byte valuestrFileName- the file namenIdResponse- The id of the response associated with this file item if any
-
GenAttFileItem
public GenAttFileItem(byte[] bValue, String strFileName, String strFieldName, int nIdResponse, String strOrigin) Creates a new file item- Parameters:
bValue- the byte valuestrFileName- the file namestrFieldName- The name of the HTML field associated with this file, if anynIdResponse- The id of the response associated with this file item if any
-
-
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
- Specified by:
getFieldNamein interfacefr.paris.lutece.portal.service.upload.MultipartItem
-
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
-
getOrigin
-
getString
-
getString
- Throws:
UnsupportedEncodingException
-
getIdResponse
public int getIdResponse()Get the id of the associated response, if any- Returns:
- The id of the associated response, if any
-
setFieldName
-
setIdResponse
public void setIdResponse(int nIdResponse) Set the id of the associated response, if any- Parameters:
nIdResponse- The id of the associated response, if any
-
setOrigin
-