class StatusStreamImpl extends AbstractStreamImplementation implements StatusStream
AbstractStreamImplementation.StreamEvent
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
line |
protected StreamListener[] |
listeners |
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 |
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, onUserUpdate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
protected 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.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
next
in interface StatusStream
listener
- 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 StreamImplementation
next
in class AbstractStreamImplementation
TwitterException
protected java.lang.String parseLine(java.lang.String line)
parseLine
in class AbstractStreamImplementation
protected void onStatus(twitter4j.internal.org.json.JSONObject json) throws TwitterException
onStatus
in class AbstractStreamImplementation
TwitterException
protected void onDelete(twitter4j.internal.org.json.JSONObject json) throws TwitterException, twitter4j.internal.org.json.JSONException
onDelete
in class AbstractStreamImplementation
TwitterException
twitter4j.internal.org.json.JSONException
protected void onLimit(twitter4j.internal.org.json.JSONObject json) throws TwitterException, twitter4j.internal.org.json.JSONException
onLimit
in class AbstractStreamImplementation
TwitterException
twitter4j.internal.org.json.JSONException
protected void onScrubGeo(twitter4j.internal.org.json.JSONObject json) throws TwitterException, twitter4j.internal.org.json.JSONException
onScrubGeo
in class AbstractStreamImplementation
TwitterException
twitter4j.internal.org.json.JSONException
public void onException(java.lang.Exception e)
onException
in interface StreamImplementation
onException
in class AbstractStreamImplementation