stella.util
Class SystemOutListener
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemOutListener
public SystemOutListener()
- Constructs a new System out listener. Because System.out is a static
stream, this method has to do nothing.
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.