public interface UserStream extends StreamImplementation
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
next(UserStreamListener listener)
Reads next element from this stream.
|
next, onException
void next(UserStreamListener listener) throws TwitterException
listener
- a UserStreamListener implementationTwitterException
- when the end of the stream has been reached.java.lang.IllegalStateException
- when the end of the stream had been reached.void close() throws java.io.IOException
close
in interface StreamImplementation
java.io.IOException