public class Command
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Command.Output |
Constructor and Description |
---|
Command(java.lang.String cmd) |
Modifier and Type | Method and Description |
---|---|
boolean |
expect(java.lang.String expected) |
boolean |
expectError(java.lang.String expected) |
java.lang.String |
getCommand() |
Command.Output |
getError() |
java.io.PrintWriter |
getInput() |
Command.Output |
getOutput() |
java.lang.String |
getResult() |
void |
start() |
void |
waitFor() |
void |
write(java.lang.String str) |
void |
writeln(java.lang.String str) |
public java.lang.String getCommand()
public void start() throws java.io.IOException
java.io.IOException
public java.io.PrintWriter getInput()
public void write(java.lang.String str)
public void writeln(java.lang.String str)
public Command.Output getOutput()
public boolean expect(java.lang.String expected) throws java.lang.InterruptedException
java.lang.InterruptedException
public Command.Output getError()
public boolean expectError(java.lang.String expected) throws java.lang.InterruptedException
java.lang.InterruptedException
public java.lang.String getResult()
public void waitFor() throws java.lang.InterruptedException
java.lang.InterruptedException