public class ServicesFileItem
extends java.lang.Object
implements org.apache.commons.fileupload.FileItem
| Constructor and Description |
|---|
ServicesFileItem(java.lang.String name,
javax.activation.DataSource data) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
byte[] |
get() |
java.lang.String |
getContentType() |
java.lang.String |
getFieldName() |
java.io.InputStream |
getInputStream() |
java.lang.String |
getName() |
java.io.OutputStream |
getOutputStream() |
long |
getSize() |
java.lang.String |
getString() |
java.lang.String |
getString(java.lang.String arg0) |
boolean |
isFormField() |
boolean |
isInMemory() |
void |
setFieldName(java.lang.String name) |
void |
setFormField(boolean arg0) |
void |
write(java.io.File arg0) |
public ServicesFileItem(java.lang.String name,
javax.activation.DataSource data)
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface org.apache.commons.fileupload.FileItemjava.io.IOExceptionpublic java.lang.String getContentType()
getContentType in interface org.apache.commons.fileupload.FileItempublic java.lang.String getName()
getName in interface org.apache.commons.fileupload.FileItempublic boolean isInMemory()
isInMemory in interface org.apache.commons.fileupload.FileItempublic long getSize()
getSize in interface org.apache.commons.fileupload.FileItempublic byte[] get()
get in interface org.apache.commons.fileupload.FileItempublic java.lang.String getString(java.lang.String arg0)
throws java.io.UnsupportedEncodingException
getString in interface org.apache.commons.fileupload.FileItemjava.io.UnsupportedEncodingExceptionpublic java.lang.String getString()
getString in interface org.apache.commons.fileupload.FileItempublic void write(java.io.File arg0)
throws java.lang.Exception
write in interface org.apache.commons.fileupload.FileItemjava.lang.Exceptionpublic void delete()
delete in interface org.apache.commons.fileupload.FileItempublic java.lang.String getFieldName()
getFieldName in interface org.apache.commons.fileupload.FileItempublic void setFieldName(java.lang.String name)
setFieldName in interface org.apache.commons.fileupload.FileItempublic boolean isFormField()
isFormField in interface org.apache.commons.fileupload.FileItempublic void setFormField(boolean arg0)
setFormField in interface org.apache.commons.fileupload.FileItempublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface org.apache.commons.fileupload.FileItemjava.io.IOException