Package de.xima.fc.http
Class FileItemPart
java.lang.Object
de.xima.fc.http.FileItemPart
- All Implemented Interfaces:
javax.servlet.http.Part
A part or a form item of a
multipart/form-data
POST request that is based upon a
FileItem
.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH, Dresden
-
Constructor Summary
ConstructorsConstructorDescriptionFileItemPart
(org.apache.commons.fileupload.FileItem fileItem) Constructor for the Part. -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
getHeaders
(String name) getName()
long
getSize()
void
-
Constructor Details
-
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 Details
-
getInputStream
- Specified by:
getInputStream
in interfacejavax.servlet.http.Part
- Throws:
IOException
-
getContentType
- Specified by:
getContentType
in interfacejavax.servlet.http.Part
-
getName
- Specified by:
getName
in interfacejavax.servlet.http.Part
-
getSubmittedFileName
- Specified by:
getSubmittedFileName
in interfacejavax.servlet.http.Part
-
getSize
public long getSize()- Specified by:
getSize
in interfacejavax.servlet.http.Part
-
write
- Specified by:
write
in interfacejavax.servlet.http.Part
- Throws:
IOException
-
delete
- Specified by:
delete
in interfacejavax.servlet.http.Part
- Throws:
IOException
-
getHeader
- Specified by:
getHeader
in interfacejavax.servlet.http.Part
-
getHeaders
- Specified by:
getHeaders
in interfacejavax.servlet.http.Part
-
getHeaderNames
- Specified by:
getHeaderNames
in interfacejavax.servlet.http.Part
-