(Quick Reference)

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 of twitter4j.StreamListener or extend one of the already implemented adapters.

Example

package demo

import twitter4j.Status import twitter4j.StatusAdapter

class MyStatusListener extends StatusAdapter{ @Override void onStatus(Status status) { println status.text } }

To let the plugin know about the implementation, add the following to the configuration:

twitter4j.userListenerClass = "demo.MyStatusListener"

Happy Streaming