org.apache.tools.ant.inputClass GreedyInputHandler
- java.lang.Object
- org.apache.tools.ant.input.DefaultInputHandler
- org.apache.tools.ant.input.GreedyInputHandler
- All Implemented Interfaces:
- InputHandler
public class GreedyInputHandler extends DefaultInputHandlerPrompts on System.err, reads input from System.in until EOF
- Since:
- Ant 1.7
Constructor Summary
Constructors Constructor and Description GreedyInputHandler()Empty no-arg constructor
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidhandleInput(InputRequest request)Prompts and requests input.
Methods inherited from class org.apache.tools.ant.input.DefaultInputHandler
getInputStream, getPrompt
Method Detail
handleInput
public void handleInput(InputRequest request) throws BuildExceptionPrompts and requests input.
- Specified by:
handleInputin interfaceInputHandler- Overrides:
handleInputin classDefaultInputHandler- Parameters:
request- the request to handle- Throws:
BuildException- if not possible to read from console, or if input is invalid.