org.objectweb.jac.util
Class Pipe
java.lang.Object
|
+--java.lang.Thread
|
+--org.objectweb.jac.util.Pipe
- All Implemented Interfaces:
- Runnable
- public class Pipe
- extends Thread
A Pipe is a thread which reads some data from a Reader and writes
it to a Writer line by line until EOF is reached in the Reader.
Method Summary |
void |
run()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Pipe
public Pipe(Reader input,
Writer output)
- Creates a new pipe.
- Parameters:
input
- the input of the pipeoutput
- the ouput of a pipe
Pipe
public Pipe(InputStream input,
OutputStream output)
- Creates a new pipe.
- Parameters:
input
- the input of the pipeoutput
- the ouput of a pipe
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread