class UserStreamImpl extends StatusStreamImpl implements UserStream
StatusStreamBase.StreamEventEMPTY, lineCONF, 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, parseLineasDirectMessage, asFriendList, asStatus, asUser, asUserList, close, handleNextElement, onDisconnectionNotice, onException, onUnfollowclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosenextUserStreamImpl(twitter4j.internal.async.Dispatcher dispatcher,
java.io.InputStream stream,
Configuration conf)
throws java.io.IOException
java.io.IOExceptionUserStreamImpl(twitter4j.internal.async.Dispatcher dispatcher,
twitter4j.internal.http.HttpResponse response,
Configuration conf)
throws java.io.IOException
java.io.IOExceptionpublic void next(UserStreamListener listener) throws TwitterException
UserStreamnext in interface UserStreamlistener - 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 StatusStreamBaseTwitterExceptionprotected void onDirectMessage(twitter4j.internal.org.json.JSONObject json,
StreamListener[] listeners)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onDirectMessage in class StatusStreamBaseTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onScrubGeo(twitter4j.internal.org.json.JSONObject json,
StreamListener[] listeners)
throws TwitterException
onScrubGeo in class StatusStreamImplTwitterExceptionprotected void onFriends(twitter4j.internal.org.json.JSONObject json,
StreamListener[] listeners)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onFriends in class StatusStreamBaseTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected 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 StatusStreamBaseTwitterExceptionprotected 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 StatusStreamBaseTwitterExceptionprotected void onFollow(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners)
throws TwitterException
onFollow in class StatusStreamBaseTwitterExceptionprotected 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 StatusStreamBaseTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected 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 StatusStreamBaseTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected 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 StatusStreamBaseTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected 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 StatusStreamBaseTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected 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 StatusStreamBaseTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected 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 StatusStreamBaseTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onUserListDestroyed(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners)
throws TwitterException
onUserListDestroyed in class StatusStreamBaseTwitterExceptionprotected void onUserUpdate(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners)
throws TwitterException
onUserUpdate in class StatusStreamBaseTwitterExceptionprotected void onBlock(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners)
throws TwitterException
onBlock in class StatusStreamBaseTwitterExceptionprotected void onUnblock(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
StreamListener[] listeners)
throws TwitterException
onUnblock in class StatusStreamBaseTwitterException