4 Streaming - Reference Documentation
Authors:
Version: 4.0.4.2
4 Streaming
To subscribe to a Twitter Stream you must implement one of the sub-interfaces oftwitter4j.StreamListener
or extend
one of the already implemented adapters.Example
package demoimport twitter4j.Status import twitter4j.StatusAdapterclass MyStatusListener extends StatusAdapter{ @Override void onStatus(Status status) { println status.text } }
twitter4j.userListenerClass = "demo.MyStatusListener"