public class TextResource extends AbstractResource
Resty.Option, Resty.Timeout
Modifier and Type | Field and Description |
---|---|
protected String |
text |
inputStream, urlConnection
DEFAULT_USER_AGENT, MOZILLA, userAgent
Constructor and Description |
---|
TextResource(Resty.Option... options) |
Modifier and Type | Method and Description |
---|---|
String |
getAcceptedTypes()
Get charset for this content type.
|
protected String |
readTextFromStream(InputStream aTextStream) |
String |
toString()
Kinda obvious, but, yes, it parses the inputStream with the proper charset
and returns the content as String
|
getUrlConnection, http, location, printResponseHeaders, status, stream
addAdditionalHeaders, addStandardHeaders, bytes, bytes, bytes, bytes, chunked, chunked, content, content, content, content, createBinaryResource, createJSONResource, createTextResource, data, data, delete, doGET, dontSend, doPOSTOrPUT, fillResourceFromURL, form, form, getAdditionalHeaders, identifyAsMozilla, identifyAsResty, json, json, json, json, openConnection, path, put, setOptions, text, text, text, text, withHeader
protected String text
public TextResource(Resty.Option... options)
public String getAcceptedTypes()
getAcceptedTypes
in class AbstractResource
protected String readTextFromStream(InputStream aTextStream)