|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.paris.lutece.util.httpaccess.MemoryFileItem
public class MemoryFileItem
MemoryFileItem
| Constructor Summary | |
|---|---|
MemoryFileItem(byte[] data,
String strName,
long lSize,
String strContentType)
Constructor |
|
| Method Summary | |
|---|---|
void |
delete()
|
byte[] |
get()
|
String |
getContentType()
|
String |
getFieldName()
Not supported |
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 |
write(File file)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryFileItem(byte[] data,
String strName,
long lSize,
String strContentType)
data - the datastrName - the file namelSize - the size of the filestrContentType - the content type of the file| 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 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.FileItem
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 | ||||||||