class StatusStreamImpl extends AbstractStreamImplementation implements StatusStream
AbstractStreamImplementation.StreamEvent| Modifier and Type | Field and Description | 
|---|---|
| protected java.lang.String | line | 
| protected StreamListener[] | listeners | 
CONF, dispatcher, factory, logger| Constructor and Description | 
|---|
| StatusStreamImpl(twitter4j.internal.async.Dispatcher dispatcher,
                twitter4j.internal.http.HttpResponse response,
                Configuration conf) | 
| StatusStreamImpl(twitter4j.internal.async.Dispatcher dispatcher,
                java.io.InputStream stream,
                Configuration conf) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | next(StatusListener listener)Reads next status from this stream. | 
| void | next(StreamListener[] listeners) | 
| protected void | onDelete(twitter4j.internal.org.json.JSONObject json) | 
| void | onException(java.lang.Exception e) | 
| protected void | onLimit(twitter4j.internal.org.json.JSONObject json) | 
| protected void | onScrubGeo(twitter4j.internal.org.json.JSONObject json) | 
| protected void | onStallWarning(twitter4j.internal.org.json.JSONObject json) | 
| protected void | onStatus(twitter4j.internal.org.json.JSONObject json) | 
| protected java.lang.String | parseLine(java.lang.String line) | 
asDirectMessage, asFriendList, asStatus, asUser, asUserList, close, handleNextElement, onBlock, onDirectMessage, onFavorite, onFollow, onFriends, onRetweet, onSender, onUnblock, onUnfavorite, onUnfollow, onUserListCreation, onUserListDestroyed, onUserListMemberAddition, onUserListMemberDeletion, onUserListSubscription, onUserListUnsubscription, onUserListUpdated, onUserUpdateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseprotected java.lang.String line
protected StreamListener[] listeners
StatusStreamImpl(twitter4j.internal.async.Dispatcher dispatcher,
                java.io.InputStream stream,
                Configuration conf)
           throws java.io.IOException
java.io.IOExceptionStatusStreamImpl(twitter4j.internal.async.Dispatcher dispatcher,
                twitter4j.internal.http.HttpResponse response,
                Configuration conf)
           throws java.io.IOException
java.io.IOExceptionpublic void next(StatusListener listener) throws TwitterException
next in interface StatusStreamlistener - a StatusListener implementationTwitterException - when the end of the stream has been reached.java.lang.IllegalStateException - when the end of the stream had been reached.public void next(StreamListener[] listeners) throws TwitterException
next in interface StreamImplementationnext in class AbstractStreamImplementationTwitterExceptionprotected java.lang.String parseLine(java.lang.String line)
parseLine in class AbstractStreamImplementationprotected void onStatus(twitter4j.internal.org.json.JSONObject json)
                 throws TwitterException
onStatus in class AbstractStreamImplementationTwitterExceptionprotected void onDelete(twitter4j.internal.org.json.JSONObject json)
                 throws TwitterException,
                        twitter4j.internal.org.json.JSONException
onDelete in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onLimit(twitter4j.internal.org.json.JSONObject json)
                throws TwitterException,
                       twitter4j.internal.org.json.JSONException
onLimit in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onStallWarning(twitter4j.internal.org.json.JSONObject json)
                       throws TwitterException,
                              twitter4j.internal.org.json.JSONException
onStallWarning in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onScrubGeo(twitter4j.internal.org.json.JSONObject json)
                   throws TwitterException,
                          twitter4j.internal.org.json.JSONException
onScrubGeo in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionpublic void onException(java.lang.Exception e)
onException in interface StreamImplementationonException in class AbstractStreamImplementation