|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.deltax.util.listener.SimpleListener
A listener which simply outputs signals on a given stream or writer.
Constructor Summary | |
SimpleListener()
Create a listener which outputs to System.out |
|
SimpleListener(java.io.OutputStream outputstream)
Create a listener which outputs to the given stream |
|
SimpleListener(java.io.Writer writer)
Create a listener which outputs to the given writer |
Method Summary | |
void |
close()
Closes the stream. |
void |
flush()
Flushes the stream. |
boolean |
isAutoFlushing()
Return the autoFlushing mode |
void |
receive(Signal signal)
This implementation discriminates among NamedSignal s, MsgSignal s
and ExceptionSignal s. |
void |
setAutoFlushing(boolean autoFlushing)
Set the autoFlushing mode (defaults to true) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleListener()
public SimpleListener(java.io.OutputStream outputstream)
outputstream
- the stream to output topublic SimpleListener(java.io.Writer writer)
writer
- the writer to output toMethod Detail |
public void receive(Signal signal)
NamedSignal
s, MsgSignal
s
and ExceptionSignal
s.
receive
in interface Listener
signal
- the received signalpublic void flush()
public void close()
public boolean isAutoFlushing()
public void setAutoFlushing(boolean autoFlushing)
autoFlushing
- the autoFlushing mode
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |