|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.mmbase.util.ProcessWriter
A class to pipe data from one stream to the other as a thread. Useful for building execution pipes.
| Constructor Summary | |
ProcessWriter(java.io.InputStream in,
java.io.OutputStream out)
Creates a writer to pipe data. |
|
ProcessWriter(java.io.InputStream in,
java.io.OutputStream out,
int blocksize)
Creates a writer to pipe data. |
|
| Method Summary | |
void |
run()
Performs the piping process. |
void |
start()
Starts the piping process by creating the thread and running it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProcessWriter(java.io.InputStream in,
java.io.OutputStream out)
in - The stream from which to pipe the data.out - The stream to pipe the data to.
public ProcessWriter(java.io.InputStream in,
java.io.OutputStream out,
int blocksize)
in - The stream from which to pipe the data.out - The stream to pipe the data to.blocksize - Size of the blocks in which data is piped| Method Detail |
public void start()
public void run()
run in interface java.lang.Runnable
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||