public class ParamPart extends Part
ParamPart
is an upload part which represents a normal
INPUT
(for example a non TYPE="file"
) form
parameter.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getStringValue()
Returns the value of the parameter in as a string (using the
parser-specified encoding to convert from bytes) or the empty string
if the user entered no value for this parameter.
|
java.lang.String |
getStringValue(java.lang.String encoding)
Returns the value of the parameter in the supplied encoding
or empty string if the user entered no value for this parameter.
|
byte[] |
getValue()
Returns the value of the parameter as an array of bytes or a zero length
array if the user entered no value for this parameter.
|
boolean |
isParam()
Returns
true to indicate this part is a parameter. |
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