|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.web.upload.NormalizeFileItem
public class NormalizeFileItem
This class is used to normalize the file names. This class override the method getName () of FileItem
Constructor Summary | |
---|---|
NormalizeFileItem(org.apache.commons.fileupload.FileItem item)
Instantiates a new normalize file item. |
Method Summary | |
---|---|
void |
delete()
|
byte[] |
get()
|
String |
getContentType()
|
String |
getFieldName()
|
InputStream |
getInputStream()
|
String |
getName()
|
OutputStream |
getOutputStream()
|
long |
getSize()
|
String |
getString()
|
String |
getString(String encoding)
|
boolean |
isFormField()
|
boolean |
isInMemory()
|
void |
setFieldName(String name)
|
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 NormalizeFileItem(org.apache.commons.fileupload.FileItem item)
item
- the itemMethod Detail |
---|
public void delete()
delete
in interface org.apache.commons.fileupload.FileItem
public byte[] get()
get
in interface org.apache.commons.fileupload.FileItem
public String getContentType()
getContentType
in interface org.apache.commons.fileupload.FileItem
public String getFieldName()
getFieldName
in interface org.apache.commons.fileupload.FileItem
public InputStream getInputStream() throws IOException
getInputStream
in interface org.apache.commons.fileupload.FileItem
IOException
public String getName()
getName
in interface org.apache.commons.fileupload.FileItem
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface org.apache.commons.fileupload.FileItem
IOException
public long getSize()
getSize
in interface org.apache.commons.fileupload.FileItem
public String getString()
getString
in interface org.apache.commons.fileupload.FileItem
public String getString(String encoding) throws UnsupportedEncodingException
getString
in interface org.apache.commons.fileupload.FileItem
UnsupportedEncodingException
public boolean isFormField()
isFormField
in interface org.apache.commons.fileupload.FileItem
public boolean isInMemory()
isInMemory
in interface org.apache.commons.fileupload.FileItem
public void setFieldName(String name)
setFieldName
in interface org.apache.commons.fileupload.FileItem
public 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.FileItem
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |