Class GreedyInputHandler
java.lang.Object
org.apache.tools.ant.input.DefaultInputHandler
org.apache.tools.ant.input.GreedyInputHandler
- All Implemented Interfaces:
InputHandler
Prompts on System.err, reads input from System.in until EOF
- Since:
- Ant 1.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleInput(InputRequest request) Prompts and requests input.Methods inherited from class DefaultInputHandler
getInputStream, getPromptModifier and TypeMethodDescriptionprotected InputStreamReturns the input stream from which the user input should be read.protected StringgetPrompt(InputRequest request) Constructs user prompt from a request.
-
Constructor Details
-
GreedyInputHandler
public GreedyInputHandler()Empty no-arg constructor
-
-
Method Details
-
handleInput
Prompts 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.
-