|
The im4java Library, Version 1.4.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.im4java.process.Pipe
public class Pipe
This class implements a pipe. Useful for piping input to a process or piping output/error from a process to other streams.
You can use the same Pipe-object for both ends of a process-pipeline. But you cannot use the same Pipe-object as an OutputConsumer and ErrorConsumer at the same time.
| Field Summary | |
|---|---|
static int |
BUFFER_SIZE
Default buffer size of the pipe. |
| Constructor Summary | |
|---|---|
Pipe(java.io.InputStream pSource,
java.io.OutputStream pSink)
Constructor. |
|
| Method Summary | |
|---|---|
void |
consumeError(java.io.InputStream pInputStream)
The ErrorConsumer must read the error of a process from the given InputStream. |
void |
consumeOutput(java.io.InputStream pInputStream)
The OutputConsumer must read the output of a process from the given InputStream. |
void |
provideInput(java.io.OutputStream pOutputStream)
The InputProvider must write the input to the given OutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BUFFER_SIZE
| Constructor Detail |
|---|
public Pipe(java.io.InputStream pSource,
java.io.OutputStream pSink)
| Method Detail |
|---|
public void provideInput(java.io.OutputStream pOutputStream)
throws java.io.IOException
provideInput in interface InputProviderjava.io.IOException
public void consumeOutput(java.io.InputStream pInputStream)
throws java.io.IOException
consumeOutput in interface OutputConsumerjava.io.IOException
public void consumeError(java.io.InputStream pInputStream)
throws java.io.IOException
consumeError in interface ErrorConsumerjava.io.IOException
|
The im4java Library, Version 1.4.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||