|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ptolemy.kernel.util.StreamListener
public class StreamListener
A debug listener that sends messages to a stream or to the standard output.
NamedObj
,
RecorderListener
Green (cxh) |
Green (eal) |
Field Summary | |
---|---|
private java.io.PrintStream |
_output
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.PrintStream _output
Constructor Detail |
---|
public StreamListener()
public StreamListener(java.io.OutputStream out)
out
- The output stream used to create the debug listener.Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |