Package com.sun.grid.util.expect
Class ExpectStringHandler
- java.lang.Object
-
- com.sun.grid.util.expect.ExpectStringHandler
-
- All Implemented Interfaces:
ExpectHandler
public class ExpectStringHandler extends java.lang.Object implements ExpectHandler
-
-
Constructor Summary
Constructors Constructor Description ExpectStringHandler(java.lang.String question, char[] message)
Creates a new instance of ExpectStringHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(Expect expect, ExpectBuffer buffer)
Handle new output of the process and be send a reply.
-
-
-
Method Detail
-
handle
public void handle(Expect expect, ExpectBuffer buffer) throws java.io.IOException
Description copied from interface:ExpectHandler
Handle new output of the process and be send a reply.- Specified by:
handle
in interfaceExpectHandler
- Parameters:
expect
- the expect object which calls this handlerbuffer
- the buffer with the output of the process- Throws:
java.io.IOException
- See Also:
Expect.print(java.lang.String)
-
-