public class CommonsFileUploadPart extends Object implements javax.servlet.http.Part
| Constructor and Description |
|---|
CommonsFileUploadPart(org.apache.commons.fileupload.FileItem fileItem,
File location) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
String |
getContentType() |
String |
getHeader(String name) |
Collection<String> |
getHeaderNames() |
Collection<String> |
getHeaders(String name) |
InputStream |
getInputStream() |
String |
getName() |
long |
getSize() |
String |
getString(String encoding) |
String |
getSubmittedFileName() |
void |
write(String fileName) |
public CommonsFileUploadPart(org.apache.commons.fileupload.FileItem fileItem,
File location)
public void delete()
throws IOException
delete in interface javax.servlet.http.PartIOExceptionpublic String getContentType()
getContentType in interface javax.servlet.http.Partpublic String getHeader(String name)
getHeader in interface javax.servlet.http.Partpublic Collection<String> getHeaderNames()
getHeaderNames in interface javax.servlet.http.Partpublic Collection<String> getHeaders(String name)
getHeaders in interface javax.servlet.http.Partpublic InputStream getInputStream() throws IOException
getInputStream in interface javax.servlet.http.PartIOExceptionpublic String getName()
getName in interface javax.servlet.http.Partpublic long getSize()
getSize in interface javax.servlet.http.Partpublic void write(String fileName) throws IOException
write in interface javax.servlet.http.PartIOExceptionpublic String getString(String encoding) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic String getSubmittedFileName()
getSubmittedFileName in interface javax.servlet.http.PartCopyright © 1999–2019 The Apache Software Foundation. All rights reserved.