class UserStreamImpl extends StatusStreamImpl implements UserStream
AbstractStreamImplementation.StreamEventline, listenersCONF, 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(StreamListener[] listeners) |
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) |
protected void |
onDirectMessage(twitter4j.internal.org.json.JSONObject json) |
void |
onException(java.lang.Exception e) |
protected void |
onFavorite(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
twitter4j.internal.org.json.JSONObject targetObject) |
protected void |
onFollow(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target) |
protected void |
onFriends(twitter4j.internal.org.json.JSONObject json) |
protected void |
onScrubGeo(twitter4j.internal.org.json.JSONObject json) |
protected void |
onSender(twitter4j.internal.org.json.JSONObject json) |
protected void |
onUnblock(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target) |
protected void |
onUnfavorite(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
twitter4j.internal.org.json.JSONObject targetObject) |
protected void |
onUserListCreation(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target) |
protected void |
onUserListDestroyed(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target) |
protected void |
onUserListMemberAddition(twitter4j.internal.org.json.JSONObject addedMember,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject target) |
protected void |
onUserListMemberDeletion(twitter4j.internal.org.json.JSONObject deletedMember,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject target) |
protected void |
onUserListSubscription(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject target) |
protected void |
onUserListUnsubscription(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject target) |
protected void |
onUserListUpdated(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target) |
protected void |
onUserUpdate(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target) |
protected java.lang.String |
parseLine(java.lang.String line) |
next, onDelete, onLimit, onStallWarning, onStatusasDirectMessage, asFriendList, asStatus, asUser, asUserList, close, handleNextElement, onRetweet, onUnfollowclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosecloseUserStreamImpl(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
next in interface UserStreamlistener - a UserStreamListener implementationTwitterException - when the end of the stream has been reached.public void next(StreamListener[] listeners) throws TwitterException
next in interface StreamImplementationnext in class StatusStreamImplTwitterExceptionprotected java.lang.String parseLine(java.lang.String line)
parseLine in class StatusStreamImplprotected void onSender(twitter4j.internal.org.json.JSONObject json)
throws TwitterException
onSender in class AbstractStreamImplementationTwitterExceptionprotected void onDirectMessage(twitter4j.internal.org.json.JSONObject json)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onDirectMessage in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onScrubGeo(twitter4j.internal.org.json.JSONObject json)
throws TwitterException
onScrubGeo in class StatusStreamImplTwitterExceptionprotected void onFriends(twitter4j.internal.org.json.JSONObject json)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onFriends in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onFavorite(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
twitter4j.internal.org.json.JSONObject targetObject)
throws TwitterException
onFavorite in class AbstractStreamImplementationTwitterExceptionprotected void onUnfavorite(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
twitter4j.internal.org.json.JSONObject targetObject)
throws TwitterException
onUnfavorite in class AbstractStreamImplementationTwitterExceptionprotected void onFollow(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException
onFollow in class AbstractStreamImplementationTwitterExceptionprotected void onUserListMemberAddition(twitter4j.internal.org.json.JSONObject addedMember,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onUserListMemberAddition in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onUserListMemberDeletion(twitter4j.internal.org.json.JSONObject deletedMember,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onUserListMemberDeletion in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onUserListSubscription(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onUserListSubscription in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onUserListUnsubscription(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onUserListUnsubscription in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onUserListCreation(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onUserListCreation in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onUserListUpdated(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onUserListUpdated in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onUserListDestroyed(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException
onUserListDestroyed in class AbstractStreamImplementationTwitterExceptionprotected void onUserUpdate(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException
onUserUpdate in class AbstractStreamImplementationTwitterExceptionprotected void onBlock(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException
onBlock in class AbstractStreamImplementationTwitterExceptionprotected void onUnblock(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException
onUnblock in class AbstractStreamImplementationTwitterExceptionpublic void onException(java.lang.Exception e)
onException in interface StreamImplementationonException in class StatusStreamImpl