twitter4j
Class StatusStream
java.lang.Object
twitter4j.StatusStream
public final class StatusStream
- extends java.lang.Object
- Since:
- Twitter4J 2.0.4
- Author:
- Yusuke Yamamoto - yusuke at mac.com
Field Summary |
private java.io.BufferedReader |
br
|
private java.io.InputStream |
is
|
private static twitter4j.internal.logging.Logger |
logger
|
private twitter4j.internal.http.HttpResponse |
response
|
private boolean |
streamAlive
|
Constructor Summary |
StatusStream(twitter4j.internal.http.HttpResponse response)
|
StatusStream(java.io.InputStream stream)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final twitter4j.internal.logging.Logger logger
streamAlive
private boolean streamAlive
br
private java.io.BufferedReader br
is
private java.io.InputStream is
response
private twitter4j.internal.http.HttpResponse response
StatusStream
StatusStream(java.io.InputStream stream)
throws java.io.IOException
- Throws:
java.io.IOException
StatusStream
StatusStream(twitter4j.internal.http.HttpResponse response)
throws java.io.IOException
- Throws:
java.io.IOException
next
public void next(StatusListener listener)
throws TwitterException
- Reads next status from this stream.
- Parameters:
listener
- a StatusListener implementation
- Throws:
TwitterException
- when the end of the stream has been reached.
java.lang.IllegalStateException
- when the end of the stream had been reached.
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException