Package org.silverpeas.core.io.upload
Class UploadedFileItem
- java.lang.Object
-
- org.apache.commons.fileupload.disk.DiskFileItem
-
- org.silverpeas.core.io.upload.UploadedFileItem
-
- All Implemented Interfaces:
org.apache.commons.fileupload.FileItem
,org.apache.commons.fileupload.FileItemHeadersSupport
public class UploadedFileItem extends org.apache.commons.fileupload.disk.DiskFileItem
Converts anUploadedFile
into a usableFileItem
instance.- Author:
- silveryocha
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
get()
String
getContentType()
InputStream
getInputStream()
String
getName()
OutputStream
getOutputStream()
long
getSize()
-
Methods inherited from class org.apache.commons.fileupload.disk.DiskFileItem
delete, finalize, getCharSet, getDefaultCharset, getFieldName, getHeaders, getStoreLocation, getString, getString, getTempFile, isFormField, isInMemory, setDefaultCharset, setFieldName, setFormField, setHeaders, toString, write
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.apache.commons.fileupload.FileItem
- Overrides:
getName
in classorg.apache.commons.fileupload.disk.DiskFileItem
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceorg.apache.commons.fileupload.FileItem
- Overrides:
getSize
in classorg.apache.commons.fileupload.disk.DiskFileItem
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfaceorg.apache.commons.fileupload.FileItem
- Overrides:
getContentType
in classorg.apache.commons.fileupload.disk.DiskFileItem
-
get
public byte[] get()
- Specified by:
get
in interfaceorg.apache.commons.fileupload.FileItem
- Overrides:
get
in classorg.apache.commons.fileupload.disk.DiskFileItem
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in interfaceorg.apache.commons.fileupload.FileItem
- Overrides:
getInputStream
in classorg.apache.commons.fileupload.disk.DiskFileItem
- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStream
in interfaceorg.apache.commons.fileupload.FileItem
- Overrides:
getOutputStream
in classorg.apache.commons.fileupload.disk.DiskFileItem
- Throws:
IOException
-
-