us.monoid.web
Class TextResource

java.lang.Object
  extended by us.monoid.web.Resty
      extended by us.monoid.web.AbstractResource
          extended by us.monoid.web.TextResource
Direct Known Subclasses:
XMLResource

public class TextResource
extends AbstractResource

This is a text/* representation of a resource.

Author:
beders

Nested Class Summary
 
Nested classes/interfaces inherited from class us.monoid.web.Resty
Resty.Option, Resty.Proxy, Resty.Timeout
 
Constructor Summary
TextResource(Resty.Option... options)
           
 
Method Summary
 String toString()
          Kinda obvious, but, yes, it parses the inputStream with the proper charset and returns the content as String
 
Methods inherited from class us.monoid.web.AbstractResource
getUrlConnection, http, location, status, stream
 
Methods inherited from class us.monoid.web.Resty
alwaysSend, authenticate, authenticate, authenticateForRealm, bytes, bytes, bytes, bytes, content, content, content, data, data, delete, dontSend, enc, form, form, identifyAsMozilla, identifyAsResty, ignoreAllCerts, json, json, json, json, path, put, setOptions, setProxy, text, text, text, text, withHeader, xml, xml, xml, xml, xpath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextResource

public TextResource(Resty.Option... options)
Method Detail

toString

public String toString()
Kinda obvious, but, yes, it parses the inputStream with the proper charset and returns the content as String

Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.