|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--kawigi.util.ProcessContainer
I couldn't do local compiling and testing without this. This contains and manages a process and forwards its output using ProcessOutput objects.
| Constructor Summary | |
ProcessContainer(java.lang.Process p,
javax.swing.text.JTextComponent output)
Creates a new ProcessContainer for p that forwards its standard output/error streams into output. |
|
| Method Summary | |
int |
endVal()
Returns the exit value of the process, waiting for it to finish if it hasn't yet. |
boolean |
isDone()
Returns true if this process has finished. |
void |
kill()
Forceably kills the process. |
void |
println(java.lang.String s)
Outputs a line of text to the process's output component. |
void |
start()
Starts the threads that listen to the output and error streams of the process. |
void |
waitFor()
Finishes and stores the exit value for the process. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProcessContainer(java.lang.Process p,
javax.swing.text.JTextComponent output)
output.
Note that it will clear output if it isn't already clear.
| Method Detail |
public void start()
public void waitFor()
public boolean isDone()
public void kill()
public int endVal()
public void println(java.lang.String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||