public class RunCommand
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
RunCommand(java.lang.String cmd,
int timeout) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static java.lang.String |
exec(java.lang.String[] cmdArray,
int timeout) |
static java.lang.String |
exec(java.lang.String cmd,
int timeout) |
protected void |
finalize() |
java.lang.String |
getOutput() |
int |
getStatus() |
static java.lang.String[] |
parseCmd(java.lang.String cmd) |
void |
run() |
void |
setErrorStream(java.io.InputStream ins) |
void |
setInputStream(java.io.InputStream ins) |
void |
timeout() |
public static java.lang.String exec(java.lang.String cmd, int timeout) throws TimeoutException
TimeoutException
public static java.lang.String exec(java.lang.String[] cmdArray, int timeout) throws TimeoutException
TimeoutException
public static java.lang.String[] parseCmd(java.lang.String cmd)
public void run()
run
in interface java.lang.Runnable
public int getStatus()
public java.lang.String getOutput()
public void setInputStream(java.io.InputStream ins)
public void setErrorStream(java.io.InputStream ins)
public void timeout()
public void close()
protected void finalize()
finalize
in class java.lang.Object