java.lang.Objectorg.objectweb.telosys.upload.Part
An upload part which represents a INPUT TYPE="file" form parameter
Method Summary | |
java.lang.String |
getContentType()
Returns the content type of the file data contained within. |
java.lang.String |
getFileName()
Returns the name of the file |
java.lang.String |
getName()
Returns the name of the form element that this Part corresponds to |
java.lang.String |
getStringValue()
Returns the value of the parameter in as a string |
java.lang.String |
getStringValue(java.lang.String encoding)
Returns the value of the parameter in as a string |
byte[] |
getValue()
Returns an byte array which contains the contents of the file supplied. |
boolean |
isFile()
Returns true to indicate this part is a file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.String getName()
public java.lang.String getFileName()
public java.lang.String getContentType()
public byte[] getValue()
public java.lang.String getStringValue() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public java.lang.String getStringValue(java.lang.String encoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public boolean isFile()