twitter4j
Interface StatusStream

All Superinterfaces:
StreamImplementation
All Known Implementing Classes:
StatusStreamImpl, UserStreamImpl

public interface StatusStream
extends StreamImplementation

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

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

Method Detail

next

void next(StatusListener listener)
          throws TwitterException
Reads next status from this stream.

Parameters:
listener - a StatusListener 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