org.objectweb.carol.irmi.test
Class Command
java.lang.Object
org.objectweb.carol.irmi.test.Command
- public class Command
- extends Object
Command
- Author:
- Rafael H. Schloming <rhs@mit.edu>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Command
public Command(String cmd)
getCommand
public String getCommand()
start
public void start()
throws IOException
- Throws:
IOException
getInput
public PrintWriter getInput()
write
public void write(String str)
writeln
public void writeln(String str)
getOutput
public Command.Output getOutput()
expect
public boolean expect(String expected)
throws InterruptedException
- Throws:
InterruptedException
getError
public Command.Output getError()
expectError
public boolean expectError(String expected)
throws InterruptedException
- Throws:
InterruptedException
getResult
public String getResult()
waitFor
public void waitFor()
throws InterruptedException
- Throws:
InterruptedException