public class CommonsFileUploadPart
extends java.lang.Object
Constructor and Description |
---|
CommonsFileUploadPart(FileItem fileItem,
java.io.File location) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
java.lang.String |
getContentType() |
java.lang.String |
getHeader(java.lang.String name) |
java.util.Collection<java.lang.String> |
getHeaderNames() |
java.util.Collection<java.lang.String> |
getHeaders(java.lang.String name) |
java.io.InputStream |
getInputStream() |
java.lang.String |
getName() |
long |
getSize() |
java.lang.String |
getString(java.lang.String encoding) |
java.lang.String |
getSubmittedFileName() |
void |
write(java.lang.String fileName) |
public CommonsFileUploadPart(FileItem fileItem, java.io.File location)
public void delete() throws java.io.IOException
java.io.IOException
public java.lang.String getContentType()
public java.lang.String getHeader(java.lang.String name)
public java.util.Collection<java.lang.String> getHeaderNames()
public java.util.Collection<java.lang.String> getHeaders(java.lang.String name)
public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
public java.lang.String getName()
public long getSize()
public void write(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public java.lang.String getString(java.lang.String encoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public java.lang.String getSubmittedFileName()