Package de.xima.fc.http
Class FileItemPart
- java.lang.Object
 - 
- de.xima.fc.http.FileItemPart
 
 
- 
- All Implemented Interfaces:
 javax.servlet.http.Part
public class FileItemPart extends Object implements javax.servlet.http.Part
A part or a form item of amultipart/form-dataPOST request that is based upon aFileItem.- Since:
 - 8.0.0
 - Author:
 - XIMA MEDIA GmbH, Dresden
 
 
- 
- 
Constructor Summary
Constructors Constructor Description FileItemPart(org.apache.commons.fileupload.FileItem fileItem)Constructor for the Part. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()StringgetContentType()StringgetHeader(String name)Collection<String>getHeaderNames()Collection<String>getHeaders(String name)InputStreamgetInputStream()StringgetName()longgetSize()StringgetSubmittedFileName()voidwrite(String fileName) 
 - 
 
- 
- 
Constructor Detail
- 
FileItemPart
public FileItemPart(org.apache.commons.fileupload.FileItem fileItem)
Constructor for the Part.- Parameters:
 fileItem- that the part is based on.- Throws:
 NullPointerException- if no file Item is given.
 
 - 
 
- 
Method Detail
- 
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
 getInputStreamin interfacejavax.servlet.http.Part- Throws:
 IOException
 
- 
getContentType
public String getContentType()
- Specified by:
 getContentTypein interfacejavax.servlet.http.Part
 
- 
getName
public String getName()
- Specified by:
 getNamein interfacejavax.servlet.http.Part
 
- 
getSubmittedFileName
public String getSubmittedFileName()
- Specified by:
 getSubmittedFileNamein interfacejavax.servlet.http.Part
 
- 
getSize
public long getSize()
- Specified by:
 getSizein interfacejavax.servlet.http.Part
 
- 
write
public void write(String fileName) throws IOException
- Specified by:
 writein interfacejavax.servlet.http.Part- Throws:
 IOException
 
- 
delete
public void delete() throws IOException- Specified by:
 deletein interfacejavax.servlet.http.Part- Throws:
 IOException
 
- 
getHeader
public String getHeader(String name)
- Specified by:
 getHeaderin interfacejavax.servlet.http.Part
 
- 
getHeaders
public Collection<String> getHeaders(String name)
- Specified by:
 getHeadersin interfacejavax.servlet.http.Part
 
- 
getHeaderNames
public Collection<String> getHeaderNames()
- Specified by:
 getHeaderNamesin interfacejavax.servlet.http.Part
 
 - 
 
 -