public static class ConsolePseudoProcess.Retransmitter
extends java.io.Writer
Writer
and retransmitting it
as IStreamMonitor
to whoever is interested.
However in its initial state it only receives signal (the text) and saves it in a buffer.
For ConsolePseudoProcess.Retransmitter
to start giving the signal away one should
call startFlushing()
method.Constructor and Description |
---|
Retransmitter() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IStreamListener listener) |
void |
close() |
void |
flush() |
java.lang.String |
getContents() |
void |
processClosed() |
void |
removeListener(IStreamListener listener) |
void |
startFlushing() |
void |
write(char[] cbuf,
int off,
int len) |
public void addListener(IStreamListener listener)
public java.lang.String getContents()
public void removeListener(IStreamListener listener)
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.Writer
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
public void write(char[] cbuf, int off, int len)
write
in class java.io.Writer
public void startFlushing()
public void processClosed()
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.