stella.util
Class SystemOutListener

java.lang.Object
  extended by stella.util.SystemOutListener
All Implemented Interfaces:
EventListener, DataListener

public class SystemOutListener
extends Object
implements DataListener

A very easy implementation of a DataListener. Any data event this listener receives is piped to System.out.

See Also:
DataEvent

Constructor Summary
SystemOutListener()
          Constructs a new System out listener.
 
Method Summary
 void dataAvailable(DataEvent de)
          Processes the data event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemOutListener

public SystemOutListener()
Constructs a new System out listener. Because System.out is a static stream, this method has to do nothing.

Method Detail

dataAvailable

public void dataAvailable(DataEvent de)
Processes the data event. Takes the string-version of the DataEvent and outputs it through System.out.

Specified by:
dataAvailable in interface DataListener
Parameters:
de - The data event describing the data occured.