Package javax.servlet.http
Interface Part
-
- All Known Implementing Classes:
ApacheMultiPart
public interface Part
The Part API.- Author:
- Manfred Riem ([email protected])
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
delete()
Delete the part.String
getContentType()
Get the content type.String
getHeader(String name)
Get the header.Collection<String>
getHeaderNames()
Get the header names.Collection<String>
getHeaders(String name)
Get the headers.InputStream
getInputStream()
Get the input stream.String
getName()
Get the name.long
getSize()
Get the size.String
getSubmittedFileName()
Get the submitted filename.void
write(String filename)
Write to the given filename.
-
-
-
Method Detail
-
delete
void delete() throws IOException
Delete the part.- Throws:
IOException
- when an I/O error occurs.
-
getContentType
String getContentType()
Get the content type.- Returns:
- the content type.
-
getHeader
String getHeader(String name)
Get the header.- Parameters:
name
- the name.- Returns:
- the header, or null.
-
getHeaderNames
Collection<String> getHeaderNames()
Get the header names.- Returns:
- the header names.
-
getHeaders
Collection<String> getHeaders(String name)
Get the headers.- Parameters:
name
- the name.- Returns:
- the headers.
-
getInputStream
InputStream getInputStream() throws IOException
Get the input stream.- Returns:
- the input stream.
- Throws:
IOException
- when an I/O error occurs.
-
getName
String getName()
Get the name.- Returns:
- the name.
-
getSize
long getSize()
Get the size.- Returns:
- the size.
-
getSubmittedFileName
String getSubmittedFileName()
Get the submitted filename.- Returns:
- the submitted filename.
-
write
void write(String filename) throws IOException
Write to the given filename.- Parameters:
filename
- the filename.- Throws:
IOException
- when an I/O error occurs.
-
-