public class StreamListener extends java.lang.Object implements DebugListener
NamedObj
,
RecorderListener
Green (cxh) |
Green (eal) |
Constructor and Description |
---|
StreamListener()
Create a debug listener that sends messages to the standard output.
|
StreamListener(java.io.OutputStream out)
Create a debug listener that sends messages to the specified stream.
|
Modifier and Type | Method and Description |
---|---|
void |
event(DebugEvent event)
Print a string representation of the event to the stream
associated with this listener.
|
void |
message(java.lang.String message)
Copy the message argument to the stream associated with
the listener.
|
public StreamListener()
public StreamListener(java.io.OutputStream out)
out
- The output stream used to create the debug listener.public void event(DebugEvent event)
event
in interface DebugListener
event
- The event.public void message(java.lang.String message)
message
in interface DebugListener
message
- The debug message.