public interface Part
The Part API.
- Author:
- Manfred Riem ([email protected])
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Delete the part.Returns the content type.Get the header.Returns the header names.getHeaders
(String name) Returns the headers.Get the input stream.getName()
Returns the name.long
getSize()
Returns the size.Returns the submitted filename.void
Write to the given filename.
-
Method Details
-
delete
Delete the part.- Throws:
IOException
- when an I/O error occurs.
-
getContentType
String getContentType()Returns the content type.- Returns:
- the content type
-
getHeader
Get the header.- Parameters:
name
- the name.- Returns:
- the header, or null.
-
getHeaderNames
Collection<String> getHeaderNames()Returns the header names.- Returns:
- the header names
-
getHeaders
Returns the headers.- Parameters:
name
- the name.- Returns:
- the headers
-
getInputStream
Get the input stream.- Returns:
- the input stream.
- Throws:
IOException
- when an I/O error occurs.
-
getName
String getName()Returns the name.- Returns:
- the name
-
getSize
long getSize()Returns the size.- Returns:
- the size
-
getSubmittedFileName
String getSubmittedFileName()Returns the submitted filename.- Returns:
- the submitted filename
-
write
Write to the given filename.- Parameters:
filename
- the filename.- Throws:
IOException
- when an I/O error occurs.
-