public interface TextData extends UploadData
text/plain
content type.Modifier and Type | Method and Description |
---|---|
default byte[] |
bytes()
Returns an array containing the upload data bytes of the associated URL request.
|
default java.lang.String |
data()
Returns a text representation of the upload data.
|
static TextData |
of(java.lang.String text)
Returns an instance of
TextData with the given upload data obtained
from the text string. |
static TextData of(java.lang.String text)
TextData
with the given upload data obtained
from the text
string.default java.lang.String data()
default byte[] bytes()
UploadData
If the upload data is constructed manually and is not associated with a URL request, returns an empty array.
bytes
in interface UploadData