com.sun.grid.util.expect
public interface ExpectHandler
handle
is called every time when new output has been
received from stdout or stderror of the process.Modifier and Type | Method and Description |
---|---|
void |
handle(Expect expect,
ExpectBuffer buffer)
Handle new output of the process and be send a reply.
|
void handle(Expect expect, ExpectBuffer buffer) throws java.io.IOException
expect
- the expect object which calls this handlerbuffer
- the buffer with the output of the processjava.io.IOException
Expect.print(java.lang.String)