|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.rej.util.StreamRedirector
public class StreamRedirector
Reads an InputStream
in a loop for as long as there is
data available, writing the data, line-by-line to a PrintStream.
Constructor Summary | |
---|---|
StreamRedirector(java.io.InputStream is,
java.io.PrintStream os)
Initializes this object with the given InputStream to read
from and the given PrintStream to write into. |
Method Summary | |
---|---|
void |
run()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamRedirector(java.io.InputStream is, java.io.PrintStream os)
InputStream
to read
from and the given PrintStream
to write into.
is
- the stream to write.os
- the stream in which to write.Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |