|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.uva.vlet.exec.LocalProcess
public class LocalProcess
Process Information wrapper
Constructor Summary | |
---|---|
LocalProcess()
|
|
LocalProcess(java.lang.Process process)
|
Method Summary | |
---|---|
void |
captureOutput(boolean captureOut,
boolean captureErr)
|
void |
execute(java.lang.String[] cmds,
boolean syncWait)
Execute command. |
int |
getExitValue()
Get exit value. |
java.io.OutputStream |
getOutputStream()
Get OutputStream to write to: |
java.lang.String |
getStderr()
Returns stderr of terminated process. |
java.lang.String |
getStdout()
Returns stdout of terminated process. |
boolean |
isTerminated()
|
void |
setCaptureOutput(boolean captureStdout,
boolean captureStderr)
|
void |
terminate()
Terminate process immediatly. |
void |
waitFor()
Wait for the process to terminate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalProcess(java.lang.Process process)
public LocalProcess()
Method Detail |
---|
public void captureOutput(boolean captureOut, boolean captureErr)
public void waitFor() throws VlException
VProcess
waitFor
in interface VProcess
VlException
public void setCaptureOutput(boolean captureStdout, boolean captureStderr)
public void execute(java.lang.String[] cmds, boolean syncWait) throws VlException
VProcess
execute
in interface VProcess
syncWait
- whether the command should wait for the process to end
VlException
public java.lang.String getStdout()
getStdout
in interface VProcess
public java.lang.String getStderr()
getStderr
in interface VProcess
public int getExitValue()
VProcess
getExitValue
in interface VProcess
public void terminate()
VProcess
terminate
in interface VProcess
public boolean isTerminated()
public java.io.OutputStream getOutputStream()
VProcess
getOutputStream
in interface VProcess
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |