|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oreilly.servlet.multipart.Part com.oreilly.servlet.multipart.ParamPart
public class ParamPart
A ParamPart
is an upload part which represents a normal
INPUT
(for example a non TYPE="file"
) form
parameter.
Method Summary | |
---|---|
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. |
Methods inherited from class com.oreilly.servlet.multipart.Part |
---|
getName, isFile |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 isParam()
true
to indicate this part is a parameter.
isParam
in class Part
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |