org.apache.tools.ant.input
public class DefaultInputHandler extends Object implements InputHandler
Since: Ant 1.5
Constructor Summary | |
---|---|
DefaultInputHandler()
Empty no-arg constructor |
Method Summary | |
---|---|
protected InputStream | getInputStream()
Returns the input stream from which the user input should be read. |
protected String | getPrompt(InputRequest request)
Constructs user prompt from a request.
|
void | handleInput(InputRequest request)
Prompts and requests input. |
Returns: the input stream from which the user input should be read.
This implementation adds (choice1,choice2,choice3,...) to the
prompt for MultipleChoiceInputRequest
s.
Parameters: request the request to construct the prompt for.
Must not be null
.
Returns: the prompt to ask the user
Parameters: request the request to handle
Throws: BuildException if not possible to read from console