Package com.teamdev.jxbrowser.net
Interface TextData
- All Superinterfaces:
UploadData
An upload data of the
text/plain content type.-
Method Summary
Modifier and TypeMethodDescriptiondefault byte[]bytes()Returns an array containing the upload data bytes of the associated URL request.default ContentTypeReturns the content type of this upload data as specified in theContent-Typeheader.default Stringdata()Returns a text representation of the upload data.static TextDataReturns an instance ofTextDatawith the given upload data obtained from thetextstring.
-
Method Details
-
of
Returns an instance ofTextDatawith the given upload data obtained from thetextstring. -
data
Returns a text representation of the upload data. -
bytes
default byte[] bytes()Description copied from interface:UploadDataReturns an array containing the upload data bytes of the associated URL request.If the upload data is constructed manually and is not associated with a URL request, returns an empty array.
- Specified by:
bytesin interfaceUploadData
-
contentType
Description copied from interface:UploadDataReturns the content type of this upload data as specified in theContent-Typeheader.If the upload data is constructed manually, the
Content-Typeheader will be created after it is passed to the Chromium engine. Thus, the returnedContentTypeobject will not contain meaningful values in this case.- Specified by:
contentTypein interfaceUploadData
-