|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--shell.Pipe
This is a base class that all pipes written for freelance have to extend. It provides input and output functionality that child classes don't have to worry about.
ProcessController| Field Summary | |
java.io.BufferedInputStream |
bis
Buffer for the user defined InputStream. |
java.lang.StringBuffer |
buffer
|
java.io.OutputStream |
os
User defined OutputStream which can be set in the constructor, or using setPipeIn(InputStream inStream). |
java.io.PipedInputStream |
pipeIn
|
ShellCommand |
rcIn
The RuntimeCommand which the output is to be piped from. |
ShellCommand |
rcOut
The RuntimeCommand which the input is to be piped into. |
| Constructor Summary | |
Pipe(ShellCommand rc1,
ShellCommand rc2)
Creates the pipe, setting the is variable to the InputStream parameter, which is then piped into variable bis. |
|
| Method Summary | |
void |
run()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.io.BufferedInputStream bis
public java.io.OutputStream os
public ShellCommand rcOut
public ShellCommand rcIn
public java.io.PipedInputStream pipeIn
public java.lang.StringBuffer buffer
| Constructor Detail |
public Pipe(ShellCommand rc1,
ShellCommand rc2)
throws java.io.IOException
rc1 - - RuntimeCommand from which the output is piped.rc2 - - RuntimeCommand which the output is piped into.| Method Detail |
public void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||