|
Purple Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.purpletech.util.SmartProcess
This Object manages a process. You can execute the process and get the output without any fuss (like exceptions).
| Constructor Summary | |
SmartProcess(java.lang.String command)
|
|
| Method Summary | |
void |
close()
Closes all streams and kills the process if there is one. |
void |
destroy()
Kills the process but leaves the output streams open. |
int |
execute()
Wait for process to be executed and returns the result. |
java.lang.String |
getError()
|
java.lang.String |
getErrorOutput()
Get the error output of the process. |
java.lang.String |
getNormalOutput()
Get the output of the process. |
protected java.lang.String |
getOutput(java.io.Reader reader)
|
void |
print(java.lang.String input)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SmartProcess(java.lang.String command)
| Method Detail |
public java.lang.String getError()
public void destroy()
getNormalOutput,
getErrorOutputpublic int execute()
public void close()
public void print(java.lang.String input)
public java.lang.String getNormalOutput()
public java.lang.String getErrorOutput()
protected java.lang.String getOutput(java.io.Reader reader)
|
Documentation generated March 5 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||