| Constructor and Description |
|---|
ApplicationPart(FileItem fileItem,
MultipartConfigElement mce) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
String |
getContentType() |
String |
getFilename() |
String |
getHeader(String name)
Obtains the value of the specified mime header for the part.
|
Collection<String> |
getHeaderNames() |
Collection<String> |
getHeaders(String name) |
InputStream |
getInputStream() |
String |
getName() |
long |
getSize() |
String |
getString(String encoding) |
void |
write(String fileName) |
public ApplicationPart(FileItem fileItem, MultipartConfigElement mce)
public void delete()
throws IOException
delete in interface PartIOExceptionpublic String getContentType()
getContentType in interface Partpublic String getHeader(String name)
javax.servlet.http.Partpublic Collection<String> getHeaderNames()
getHeaderNames in interface Partpublic Collection<String> getHeaders(String name)
getHeaders in interface Partpublic InputStream getInputStream() throws IOException
getInputStream in interface PartIOExceptionpublic void write(String fileName) throws IOException
write in interface PartIOExceptionpublic String getString(String encoding) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic String getFilename()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.