|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.genericattributes.business.GenAttFileItem
public class GenAttFileItem
GenAttFileItem : builds a new fileItem
| Constructor Summary | |
|---|---|
GenAttFileItem(byte[] bValue,
String strFileName)
Creates a new file item |
|
GenAttFileItem(byte[] bValue,
String strFileName,
int nIdResponse)
Creates a new file item |
|
GenAttFileItem(byte[] bValue,
String strFileName,
String strFieldName,
int nIdResponse)
Creates a new file item |
|
| Method Summary | |
|---|---|
void |
delete()
|
byte[] |
get()
|
String |
getContentType()
|
String |
getFieldName()
|
int |
getIdResponse()
Get the id of the associated response, if any |
InputStream |
getInputStream()
|
String |
getName()
|
OutputStream |
getOutputStream()
|
long |
getSize()
|
String |
getString()
|
String |
getString(String encoding)
|
boolean |
isFormField()
|
boolean |
isInMemory()
|
void |
setFieldName(String strName)
|
void |
setFormField(boolean bState)
|
void |
setIdResponse(int nIdResponse)
Set the id of the associated response, if any |
void |
write(File file)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenAttFileItem(byte[] bValue,
String strFileName)
bValue - the byte valuestrFileName - the file name
public GenAttFileItem(byte[] bValue,
String strFileName,
int nIdResponse)
bValue - the byte valuestrFileName - the file namenIdResponse - The id of the response associated with this file item
if any
public GenAttFileItem(byte[] bValue,
String strFileName,
String strFieldName,
int nIdResponse)
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 Detail |
|---|
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.FileItem
public InputStream getInputStream()
throws IOException
getInputStream in interface org.apache.commons.fileupload.FileItemIOExceptionpublic String getName()
getName in interface org.apache.commons.fileupload.FileItem
public 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.FileItem
public String getString(String encoding)
throws UnsupportedEncodingException
getString in interface org.apache.commons.fileupload.FileItemUnsupportedEncodingExceptionpublic int getIdResponse()
public boolean isFormField()
isFormField in interface org.apache.commons.fileupload.FileItempublic boolean isInMemory()
isInMemory in interface org.apache.commons.fileupload.FileItempublic void setFieldName(String strName)
setFieldName in interface org.apache.commons.fileupload.FileItempublic void setFormField(boolean bState)
setFormField in interface org.apache.commons.fileupload.FileItempublic void setIdResponse(int nIdResponse)
nIdResponse - The id of the associated response, if any
public void write(File file)
throws Exception
write in interface org.apache.commons.fileupload.FileItemException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||