public class TextData extends RawData
FormData
or
MultipartFormData
but can be represented as plain text.
Constructor and Description |
---|
TextData(byte[] data, java.lang.String text) |
TextData(java.lang.String text) |
TextData(TextData other) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getText()
Returns a string that contains unparsed POST data.
返回包含未解析的POST数据的字符串。 |
UploadDataType |
getType()
Returns
返回UploadDataType.PLAIN_TEXT。 UploadDataType.PLAIN_TEXT .
|
void |
setText(java.lang.String text)
Sets a string that will be used as POST data parameter.
设置将用作POST数据参数的字符串。 |
public TextData(java.lang.String text)
public TextData(byte[] data, java.lang.String text)
public TextData(TextData other)
public java.lang.String getText()
public void setText(java.lang.String text)
text
- a string that will be used as POST data parameter.
-将用作POST数据参数的字符串。
public UploadDataType getType()
UploadDataType.PLAIN_TEXT
.