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 TypeMethodDescriptionvoiddelete()getHeaders(String name) getName()longgetSize()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:
getInputStreamin interfacejavax.servlet.http.Part- Throws:
IOException
-
getContentType
- Specified by:
getContentTypein interfacejavax.servlet.http.Part
-
getName
- Specified by:
getNamein interfacejavax.servlet.http.Part
-
getSubmittedFileName
- Specified by:
getSubmittedFileNamein interfacejavax.servlet.http.Part
-
getSize
public long getSize()- Specified by:
getSizein interfacejavax.servlet.http.Part
-
write
- Specified by:
writein interfacejavax.servlet.http.Part- Throws:
IOException
-
delete
- Specified by:
deletein interfacejavax.servlet.http.Part- Throws:
IOException
-
getHeader
- Specified by:
getHeaderin interfacejavax.servlet.http.Part
-
getHeaders
- Specified by:
getHeadersin interfacejavax.servlet.http.Part
-
getHeaderNames
- Specified by:
getHeaderNamesin interfacejavax.servlet.http.Part
-