twitter4j
Interface UserStream

All Superinterfaces:
StreamImplementation
All Known Implementing Classes:
UserStreamImpl

public interface UserStream
extends StreamImplementation

Since:
Twitter4J 2.1.3
Author:
Yusuke Yamamoto - yusuke at mac.com

Method Summary
 void close()
           
 void next(UserStreamListener listener)
          Reads next element from this stream.
 
Methods inherited from interface twitter4j.StreamImplementation
next, onException
 

Method Detail

next

void next(UserStreamListener listener)
          throws TwitterException
Reads next element from this stream.

Parameters:
listener - a UserStreamListener implementation
Throws:
TwitterException - when the end of the stream has been reached.
java.lang.IllegalStateException - when the end of the stream had been reached.

close

void close()
           throws java.io.IOException
Specified by:
close in interface StreamImplementation
Throws:
java.io.IOException