|
|||||||||
| 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,
java.lang.String strName,
long lSize,
java.lang.String strContentType)
Constructor |
|
| Method Summary | |
|---|---|
void |
delete()
|
byte[] |
get()
|
java.lang.String |
getContentType()
|
java.lang.String |
getFieldName()
Not supported |
java.io.InputStream |
getInputStream()
|
java.lang.String |
getName()
|
java.io.OutputStream |
getOutputStream()
|
long |
getSize()
|
java.lang.String |
getString()
|
java.lang.String |
getString(java.lang.String strEncoding)
|
boolean |
isFormField()
|
boolean |
isInMemory()
|
void |
setFieldName(java.lang.String strFieldName)
|
void |
setFormField(boolean state)
|
void |
write(java.io.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,
java.lang.String strName,
long lSize,
java.lang.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 java.lang.String getContentType()
getContentType in interface org.apache.commons.fileupload.FileItempublic java.lang.String getFieldName()
getFieldName in interface org.apache.commons.fileupload.FileItem
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface org.apache.commons.fileupload.FileItemjava.io.IOExceptionpublic java.lang.String getName()
getName in interface org.apache.commons.fileupload.FileItem
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface org.apache.commons.fileupload.FileItemjava.io.IOExceptionpublic long getSize()
getSize in interface org.apache.commons.fileupload.FileItempublic java.lang.String getString()
getString in interface org.apache.commons.fileupload.FileItem
public java.lang.String getString(java.lang.String strEncoding)
throws java.io.UnsupportedEncodingException
getString in interface org.apache.commons.fileupload.FileItemjava.io.UnsupportedEncodingExceptionpublic boolean isFormField()
isFormField in interface org.apache.commons.fileupload.FileItempublic boolean isInMemory()
isInMemory in interface org.apache.commons.fileupload.FileItempublic void setFieldName(java.lang.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(java.io.File file)
throws java.lang.Exception
write in interface org.apache.commons.fileupload.FileItemjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||