class UserStreamImpl extends StatusStreamImpl implements UserStream
StatusStreamBase.StreamEvent
EMPTY, line
CONF, dispatcher, factory, logger
Constructor and Description |
---|
UserStreamImpl(twitter4j.internal.async.Dispatcher dispatcher,
twitter4j.internal.http.HttpResponse response,
Configuration conf) |
UserStreamImpl(twitter4j.internal.async.Dispatcher dispatcher,
java.io.InputStream stream,
Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
next(UserStreamListener listener)
Reads next element from this stream.
|
protected void |
onBlock(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners) |
protected void |
onDirectMessage(twitter4j.internal.org.json.JSONObject json,
StreamListener[] listeners) |
protected void |
onFavorite(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
twitter4j.internal.org.json.JSONObject targetObject,
StreamListener[] listeners) |
protected void |
onFollow(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners) |
protected void |
onFriends(twitter4j.internal.org.json.JSONObject json,
StreamListener[] listeners) |
protected void |
onScrubGeo(twitter4j.internal.org.json.JSONObject json,
StreamListener[] listeners) |
protected void |
onSender(twitter4j.internal.org.json.JSONObject json,
StreamListener[] listeners) |
protected void |
onUnblock(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners) |
protected void |
onUnfavorite(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
twitter4j.internal.org.json.JSONObject targetObject,
StreamListener[] listeners) |
protected void |
onUserListCreation(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners) |
protected void |
onUserListDestroyed(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners) |
protected void |
onUserListMemberAddition(twitter4j.internal.org.json.JSONObject addedMember,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners) |
protected void |
onUserListMemberDeletion(twitter4j.internal.org.json.JSONObject deletedMember,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners) |
protected void |
onUserListSubscription(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners) |
protected void |
onUserListUnsubscription(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners) |
protected void |
onUserListUpdated(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners) |
protected void |
onUserUpdate(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners) |
next, next, onDelete, onException, onLimit, onMessage, onStallWarning, onStatus, parseLine
asDirectMessage, asFriendList, asStatus, asUser, asUserList, close, handleNextElement, onDisconnectionNotice, onException, onUnfollow
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
next
UserStreamImpl(twitter4j.internal.async.Dispatcher dispatcher, java.io.InputStream stream, Configuration conf) throws java.io.IOException
java.io.IOException
UserStreamImpl(twitter4j.internal.async.Dispatcher dispatcher, twitter4j.internal.http.HttpResponse response, Configuration conf) throws java.io.IOException
java.io.IOException
public void next(UserStreamListener listener) throws TwitterException
UserStream
next
in interface UserStream
listener
- a UserStreamListener implementationTwitterException
- when the end of the stream has been reached.protected void onSender(twitter4j.internal.org.json.JSONObject json, StreamListener[] listeners) throws TwitterException
onSender
in class StatusStreamBase
TwitterException
protected void onDirectMessage(twitter4j.internal.org.json.JSONObject json, StreamListener[] listeners) throws TwitterException, twitter4j.internal.org.json.JSONException
onDirectMessage
in class StatusStreamBase
TwitterException
twitter4j.internal.org.json.JSONException
protected void onScrubGeo(twitter4j.internal.org.json.JSONObject json, StreamListener[] listeners) throws TwitterException
onScrubGeo
in class StatusStreamImpl
TwitterException
protected void onFriends(twitter4j.internal.org.json.JSONObject json, StreamListener[] listeners) throws TwitterException, twitter4j.internal.org.json.JSONException
onFriends
in class StatusStreamBase
TwitterException
twitter4j.internal.org.json.JSONException
protected void onFavorite(twitter4j.internal.org.json.JSONObject source, twitter4j.internal.org.json.JSONObject target, twitter4j.internal.org.json.JSONObject targetObject, StreamListener[] listeners) throws TwitterException
onFavorite
in class StatusStreamBase
TwitterException
protected void onUnfavorite(twitter4j.internal.org.json.JSONObject source, twitter4j.internal.org.json.JSONObject target, twitter4j.internal.org.json.JSONObject targetObject, StreamListener[] listeners) throws TwitterException
onUnfavorite
in class StatusStreamBase
TwitterException
protected void onFollow(twitter4j.internal.org.json.JSONObject source, twitter4j.internal.org.json.JSONObject target, StreamListener[] listeners) throws TwitterException
onFollow
in class StatusStreamBase
TwitterException
protected void onUserListMemberAddition(twitter4j.internal.org.json.JSONObject addedMember, twitter4j.internal.org.json.JSONObject owner, twitter4j.internal.org.json.JSONObject target, StreamListener[] listeners) throws TwitterException, twitter4j.internal.org.json.JSONException
onUserListMemberAddition
in class StatusStreamBase
TwitterException
twitter4j.internal.org.json.JSONException
protected void onUserListMemberDeletion(twitter4j.internal.org.json.JSONObject deletedMember, twitter4j.internal.org.json.JSONObject owner, twitter4j.internal.org.json.JSONObject target, StreamListener[] listeners) throws TwitterException, twitter4j.internal.org.json.JSONException
onUserListMemberDeletion
in class StatusStreamBase
TwitterException
twitter4j.internal.org.json.JSONException
protected void onUserListSubscription(twitter4j.internal.org.json.JSONObject source, twitter4j.internal.org.json.JSONObject owner, twitter4j.internal.org.json.JSONObject target, StreamListener[] listeners) throws TwitterException, twitter4j.internal.org.json.JSONException
onUserListSubscription
in class StatusStreamBase
TwitterException
twitter4j.internal.org.json.JSONException
protected void onUserListUnsubscription(twitter4j.internal.org.json.JSONObject source, twitter4j.internal.org.json.JSONObject owner, twitter4j.internal.org.json.JSONObject target, StreamListener[] listeners) throws TwitterException, twitter4j.internal.org.json.JSONException
onUserListUnsubscription
in class StatusStreamBase
TwitterException
twitter4j.internal.org.json.JSONException
protected void onUserListCreation(twitter4j.internal.org.json.JSONObject source, twitter4j.internal.org.json.JSONObject target, StreamListener[] listeners) throws TwitterException, twitter4j.internal.org.json.JSONException
onUserListCreation
in class StatusStreamBase
TwitterException
twitter4j.internal.org.json.JSONException
protected void onUserListUpdated(twitter4j.internal.org.json.JSONObject source, twitter4j.internal.org.json.JSONObject target, StreamListener[] listeners) throws TwitterException, twitter4j.internal.org.json.JSONException
onUserListUpdated
in class StatusStreamBase
TwitterException
twitter4j.internal.org.json.JSONException
protected void onUserListDestroyed(twitter4j.internal.org.json.JSONObject source, twitter4j.internal.org.json.JSONObject target, StreamListener[] listeners) throws TwitterException
onUserListDestroyed
in class StatusStreamBase
TwitterException
protected void onUserUpdate(twitter4j.internal.org.json.JSONObject source, twitter4j.internal.org.json.JSONObject target, StreamListener[] listeners) throws TwitterException
onUserUpdate
in class StatusStreamBase
TwitterException
protected void onBlock(twitter4j.internal.org.json.JSONObject source, twitter4j.internal.org.json.JSONObject target, StreamListener[] listeners) throws TwitterException
onBlock
in class StatusStreamBase
TwitterException
protected void onUnblock(twitter4j.internal.org.json.JSONObject source, twitter4j.internal.org.json.JSONObject target, StreamListener[] listeners) throws TwitterException
onUnblock
in class StatusStreamBase
TwitterException