|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.util.ProcessLauncher
public class ProcessLauncher
Performs the process using another thread to start sending output, before processing has completed.
Supported API: true
Extendable: false
Process| Nested Class Summary | |
|---|---|
class |
wt.util.ProcessLauncher.TimeoutException
|
| Constructor Summary | |
|---|---|
ProcessLauncher(String command)
Create an instance to run the command; Supported API: true |
|
| Method Summary | |
|---|---|
String |
getCommand()
Tell the client what the command was when constructor was called. |
int |
runProcess()
Launch the subprocess and wait for it to complete. |
void |
setErrorStream(PrintStream error_stream)
The errors from the process and local class methods will be written to this PrintStream, for reading to begin before processing completes. |
void |
setErrorWriter(PrintWriter error_writer)
The errors from the process and local class methods will be written to this PrintWriter, for reading to begin after the process completes. |
void |
setOutStream(PrintStream out_stream)
The output from the process's output stream will be written to this PrintStream, for reading to begin before processing completes. |
void |
setOutWriter(PrintWriter out_writer)
The output from the process's output stream will be written to this PrintWriter, for reading to begin after the process completes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessLauncher(String command)
command - Process this command.| Method Detail |
|---|
public final String getCommand()
public void setErrorWriter(PrintWriter error_writer)
error_writer - After processing completes, review errors from here.public void setOutWriter(PrintWriter out_writer)
out_writer - After processing completes, review the process' progression from here.public void setErrorStream(PrintStream error_stream)
error_stream - While still processing, look at errors from here.public void setOutStream(PrintStream out_stream)
out_stream - While still processing, look at the process' progression from here.
public final int runProcess()
throws IOException,
wt.util.ProcessLauncher.TimeoutException
IOException - Forwarded from runProcess(long,long).
wt.util.ProcessLauncher.TimeoutException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||