|
terp - the Codemesh Modular Template Interpreter v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.codemesh.terp.util.PumpStreamHandler
public class PumpStreamHandler
| Constructor Summary | |
|---|---|
PumpStreamHandler(java.lang.Process p)
Construct a new pump stream handler which uses byte array buffers to hold the output. |
|
PumpStreamHandler(java.lang.Process p,
java.io.OutputStream out,
java.io.OutputStream err)
Construct a new pump stream handler. |
|
PumpStreamHandler(java.lang.Process p,
java.io.OutputStream out,
java.io.OutputStream err,
java.io.InputStream in)
Construct a new pump stream handler. |
|
| Method Summary | |
|---|---|
protected java.lang.Thread |
createPump(java.io.InputStream is,
java.io.OutputStream os)
Creates a stream pumper. |
java.io.OutputStream |
getErr()
Get the error stream. |
java.io.OutputStream |
getOut()
Get the output stream. |
void |
setProcessInputStream(java.io.OutputStream os)
Set the output stream which is sending input to the process. |
void |
start()
Start the threads. |
void |
stop()
Stop pumping the streams. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PumpStreamHandler(java.lang.Process p)
p - the process to hook up.
public PumpStreamHandler(java.lang.Process p,
java.io.OutputStream out,
java.io.OutputStream err)
p - the process to hook up.out - the output stream.err - the error stream.
public PumpStreamHandler(java.lang.Process p,
java.io.OutputStream out,
java.io.OutputStream err,
java.io.InputStream in)
p - the process to hook up.out - the output stream.err - the error stream.in - the input stream.| Method Detail |
|---|
public void setProcessInputStream(java.io.OutputStream os)
os - the OutputStream.public void start()
public void stop()
public java.io.OutputStream getOut()
public java.io.OutputStream getErr()
protected java.lang.Thread createPump(java.io.InputStream is,
java.io.OutputStream os)
is - the input stream.os - the output stream.
|
terp - the Codemesh Modular Template Interpreter v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||