twitter4j.http
Class Response
java.lang.Object
twitter4j.http.Response
- All Implemented Interfaces:
- java.io.Serializable
public class Response
- extends java.lang.Object
- implements java.io.Serializable
A data class representing HTTP Response
- Author:
- Yusuke Yamamoto - yusuke at mac.com
- See Also:
- Serialized Form
|
Constructor Summary |
Response(int statusCode,
java.io.InputStream is)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Response
public Response(int statusCode,
java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
getStatusCode
public int getStatusCode()
asString
public java.lang.String asString()
asStream
public java.io.InputStream asStream()
asDocument
public org.w3c.dom.Document asDocument()
throws TwitterException
- Throws:
TwitterException
asJSONObject
public twitter4j.org.json.JSONObject asJSONObject()
throws TwitterException
- Throws:
TwitterException
asReader
public java.io.InputStreamReader asReader()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2009. All Rights Reserved.