com.sun.grid.util.expect
public class ExpectStringHandler extends java.lang.Object implements ExpectHandler
Constructor and Description |
---|
ExpectStringHandler(java.lang.String question,
char[] message)
Creates a new instance of ExpectStringHandler
|
Modifier and Type | Method and Description |
---|---|
void |
handle(Expect expect,
ExpectBuffer buffer)
Handle new output of the process and be send a reply.
|
public ExpectStringHandler(java.lang.String question, char[] message)
public void handle(Expect expect, ExpectBuffer buffer) throws java.io.IOException
ExpectHandler
handle
in interface ExpectHandler
expect
- the expect object which calls this handlerbuffer
- the buffer with the output of the processjava.io.IOException
Expect.print(java.lang.String)