public class OutputLoop extends Object
println()
methods to a graphical console or log file.Modifier and Type | Field and Description |
---|---|
private PrintStream |
newout |
private PrintStream |
oldout |
private PipedInputStream |
pipein |
private PipedOutputStream |
pipeout |
Constructor and Description |
---|
OutputLoop()
Construct a new
OutputLoop . |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose of the loop.
|
InputStream |
getInputStream()
Get the stream from which output can be read.
|
void |
setActive(boolean active)
Turn the loop on or off.
|
private PipedInputStream pipein
private PipedOutputStream pipeout
private PrintStream oldout
private PrintStream newout
public OutputLoop() throws IOException
OutputLoop
.IOException
- If an error occurred while creating the
pipe.public InputStream getInputStream()
public void setActive(boolean active)
active
- A flag specifying whether the loop should be turned on
or off.public void dispose()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses