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, onUserUpdate
protected 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.IOException
StatusStreamImpl(twitter4j.internal.async.Dispatcher dispatcher, twitter4j.internal.http.HttpResponse response, Configuration conf) throws java.io.IOException
java.io.IOException
public void next(StatusListener listener) throws TwitterException
StatusStream
next
in interface StatusStream
next
in class StatusStreamBase
listener
- a StatusListener implementationTwitterException
- when the end of the stream has been reached.public void next(StreamListener[] listeners, RawStreamListener[] rawStreamListeners) throws TwitterException
next
in class StatusStreamBase
TwitterException
protected java.lang.String parseLine(java.lang.String line)
parseLine
in class StatusStreamBase
protected void onMessage(java.lang.String rawString, RawStreamListener[] listeners) throws TwitterException
onMessage
in class StatusStreamBase
TwitterException
protected void onStatus(twitter4j.internal.org.json.JSONObject json, StreamListener[] listeners) throws TwitterException
onStatus
in class StatusStreamBase
TwitterException
protected void onDelete(twitter4j.internal.org.json.JSONObject json, StreamListener[] listeners) throws TwitterException, twitter4j.internal.org.json.JSONException
onDelete
in class StatusStreamBase
TwitterException
twitter4j.internal.org.json.JSONException
protected void onLimit(twitter4j.internal.org.json.JSONObject json, StreamListener[] listeners) throws TwitterException, twitter4j.internal.org.json.JSONException
onLimit
in class StatusStreamBase
TwitterException
twitter4j.internal.org.json.JSONException
protected void onStallWarning(twitter4j.internal.org.json.JSONObject json, StreamListener[] listeners) throws TwitterException, twitter4j.internal.org.json.JSONException
onStallWarning
in class StatusStreamBase
TwitterException
twitter4j.internal.org.json.JSONException
protected void onScrubGeo(twitter4j.internal.org.json.JSONObject json, StreamListener[] listeners) throws TwitterException, twitter4j.internal.org.json.JSONException
onScrubGeo
in class StatusStreamBase
TwitterException
twitter4j.internal.org.json.JSONException
public void onException(java.lang.Exception e, StreamListener[] listeners)
onException
in class StatusStreamBase