public interface Executor
| Modifier and Type | Method and Description |
|---|---|
int |
execute(java.lang.String[] args)
Execute any command with the passed in arguments.
|
java.lang.String |
getLastCommandErrorMessage()
Returns the error message captured during the last command executed.
|
java.lang.String |
getLastCommandOutput()
Returns the output captured during the last command executed.
|
int execute(java.lang.String[] args)
args - array of command you wish to execute.java.lang.String getLastCommandOutput()
null if no command has been executed; the empty string
if there was no output from the commandjava.lang.String getLastCommandErrorMessage()
null if no command has been executed; the empty string
if there was no error from the command