kiwi.io
Class OutputLoop
java.lang.Object
|
+--kiwi.io.OutputLoop
- public class OutputLoop
- extends Object
A class for redirecting a program's standard output stream back into
itself. An output loop can be used to redirect the output of
println() methods to a graphical console or log file.
- Version:
- 1.0 (05/98)
- Author:
- Mark Lindner, PING Software Group
Constructor Summary |
OutputLoop()
Construct a new OutputLoop . |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
OutputLoop
public OutputLoop()
throws IOException
- Construct a new
OutputLoop
.
- Throws:
- IOException - If an error occurred while creating the
pipe.
getInputStream
public InputStream getInputStream()
- Get the stream from which output can be read.
on
public void on()
- Turn the loop on. Standard output is redirected from the console to the
loop.
off
public void off()
- Turn the loop off. Standard output is reconnected to the console.
dispose
public void dispose()
- Dispose of the loop. Turns the loop off, destroys the pipe, and
reconnects the standard output stream to the console.