public class ParamPart extends Part
ParamPart is an upload part which represents a normal
INPUT (for example a non TYPE="file") form
parameter.| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
String |
getStringValue(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 String getStringValue() throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic String getStringValue(String encoding) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2022. All rights reserved.