public class ExpectPasswordHandler extends java.lang.Object implements ExpectHandler
| Constructor and Description |
|---|
ExpectPasswordHandler(java.lang.String question,
char[] password)
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 ExpectPasswordHandler(java.lang.String question,
char[] password)
public void handle(Expect expect, ExpectBuffer buffer) throws java.io.IOException
ExpectHandlerhandle in interface ExpectHandlerexpect - the expect object which calls this handlerbuffer - the buffer with the output of the processjava.io.IOExceptionExpect.print(java.lang.String)