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.FileItem
java.io.IOException
public java.lang.String getContentType()
getContentType
in interface org.apache.commons.fileupload.FileItem
public java.lang.String getName()
getName
in interface org.apache.commons.fileupload.FileItem
public boolean isInMemory()
isInMemory
in interface org.apache.commons.fileupload.FileItem
public long getSize()
getSize
in interface org.apache.commons.fileupload.FileItem
public byte[] get()
get
in interface org.apache.commons.fileupload.FileItem
public java.lang.String getString(java.lang.String arg0) throws java.io.UnsupportedEncodingException
getString
in interface org.apache.commons.fileupload.FileItem
java.io.UnsupportedEncodingException
public java.lang.String getString()
getString
in interface org.apache.commons.fileupload.FileItem
public void write(java.io.File arg0) throws java.lang.Exception
write
in interface org.apache.commons.fileupload.FileItem
java.lang.Exception
public void delete()
delete
in interface org.apache.commons.fileupload.FileItem
public java.lang.String getFieldName()
getFieldName
in interface org.apache.commons.fileupload.FileItem
public void setFieldName(java.lang.String name)
setFieldName
in interface org.apache.commons.fileupload.FileItem
public boolean isFormField()
isFormField
in interface org.apache.commons.fileupload.FileItem
public void setFormField(boolean arg0)
setFormField
in interface org.apache.commons.fileupload.FileItem
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface org.apache.commons.fileupload.FileItem
java.io.IOException