All Packages Class Hierarchy This Package Previous Next Index
Class com.oreilly.servlet.multipart.ParamPart
java.lang.Object
|
+----com.oreilly.servlet.multipart.Part
|
+----com.oreilly.servlet.multipart.ParamPart
- public class ParamPart
- extends Part
A ParamPart
is an upload part which represents a normal
INPUT
(i.e. non TYPE="file"
) form parameter.
- Version:
- 1.0, 2000/10/27, initial revision
- Author:
- Geoff Soutter
-
getStringValue()
-
Returns the value of the parameter in the default ISO-8859-1 encoding
or empty string if the user entered no value for this parameter.
-
getStringValue(String)
-
Returns the value of the parameter in the supplied encoding
or empty string if the user entered no value for this parameter.
-
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.
-
isParam()
- Returns
true
to indicate this part is a parameter.
getValue
public 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.
- Returns:
- value of parameter as a ISO-8559-1 string.
getStringValue
public String getStringValue() throws UnsupportedEncodingException
- Returns the value of the parameter in the default ISO-8859-1 encoding
or empty string if the user entered no value for this parameter.
- Returns:
- value of parameter as a ISO-8559-1 encoded string.
getStringValue
public String getStringValue(String encoding) throws UnsupportedEncodingException
- Returns the value of the parameter in the supplied encoding
or empty string if the user entered no value for this parameter.
- Returns:
- value of parameter as a string.
isParam
public boolean isParam()
- Returns
true
to indicate this part is a parameter.
- Returns:
- true.
- Overrides:
- isParam in class Part
All Packages Class Hierarchy This Package Previous Next Index