class StatusStreamImpl extends StatusStreamBase
StatusStreamBase.StreamEvent| Modifier and Type | Field and Description | 
|---|---|
protected static RawStreamListener[] | 
EMPTY  | 
protected java.lang.String | 
line  | 
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,
    RawStreamListener[] rawStreamListeners)  | 
protected void | 
onDelete(twitter4j.internal.org.json.JSONObject json,
        StreamListener[] listeners)  | 
void | 
onException(java.lang.Exception e,
           StreamListener[] listeners)  | 
protected void | 
onLimit(twitter4j.internal.org.json.JSONObject json,
       StreamListener[] listeners)  | 
protected void | 
onMessage(java.lang.String rawString,
         RawStreamListener[] listeners)  | 
protected void | 
onScrubGeo(twitter4j.internal.org.json.JSONObject json,
          StreamListener[] listeners)  | 
protected void | 
onStallWarning(twitter4j.internal.org.json.JSONObject json,
              StreamListener[] listeners)  | 
protected void | 
onStatus(twitter4j.internal.org.json.JSONObject json,
        StreamListener[] listeners)  | 
protected java.lang.String | 
parseLine(java.lang.String line)  | 
asDirectMessage, asFriendList, asStatus, asUser, asUserList, close, handleNextElement, onBlock, onDirectMessage, onDisconnectionNotice, onException, onFavorite, onFollow, onFriends, onSender, onUnblock, onUnfavorite, onUnfollow, onUserListCreation, onUserListDestroyed, onUserListMemberAddition, onUserListMemberDeletion, onUserListSubscription, onUserListUnsubscription, onUserListUpdated, onUserUpdateprotected java.lang.String line
protected static final RawStreamListener[] EMPTY
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
StatusStreamnext in interface StatusStreamnext in class StatusStreamBaselistener - a StatusListener implementationTwitterException - when the end of the stream has been reached.public void next(StreamListener[] listeners, RawStreamListener[] rawStreamListeners) throws TwitterException
next in class StatusStreamBaseTwitterExceptionprotected java.lang.String parseLine(java.lang.String line)
parseLine in class StatusStreamBaseprotected void onMessage(java.lang.String rawString,
             RawStreamListener[] listeners)
                  throws TwitterException
onMessage in class StatusStreamBaseTwitterExceptionprotected void onStatus(twitter4j.internal.org.json.JSONObject json,
            StreamListener[] listeners)
                 throws TwitterException
onStatus in class StatusStreamBaseTwitterExceptionprotected void onDelete(twitter4j.internal.org.json.JSONObject json,
            StreamListener[] listeners)
                 throws TwitterException,
                        twitter4j.internal.org.json.JSONException
onDelete in class StatusStreamBaseTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onLimit(twitter4j.internal.org.json.JSONObject json,
           StreamListener[] listeners)
                throws TwitterException,
                       twitter4j.internal.org.json.JSONException
onLimit in class StatusStreamBaseTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onStallWarning(twitter4j.internal.org.json.JSONObject json,
                  StreamListener[] listeners)
                       throws TwitterException,
                              twitter4j.internal.org.json.JSONException
onStallWarning in class StatusStreamBaseTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onScrubGeo(twitter4j.internal.org.json.JSONObject json,
              StreamListener[] listeners)
                   throws TwitterException,
                          twitter4j.internal.org.json.JSONException
onScrubGeo in class StatusStreamBaseTwitterExceptiontwitter4j.internal.org.json.JSONExceptionpublic void onException(java.lang.Exception e,
               StreamListener[] listeners)
onException in class StatusStreamBase