JAC project
AOPSYS
CEDRIC & LIP6 labs

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.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Pipe(InputStream input, OutputStream output)
          Creates a new pipe.
Pipe(Reader input, Writer output)
          Creates a new pipe.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pipe

public Pipe(Reader input,
            Writer output)
Creates a new pipe.

Parameters:
input - the input of the pipe

Pipe

public Pipe(InputStream input,
            OutputStream output)
Creates a new pipe.

Parameters:
input - the input of the pipe
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli