org.apache.tools.ant.input
Class DefaultInputHandler
java.lang.Object
org.apache.tools.ant.input.DefaultInputHandler
- InputHandler
public class DefaultInputHandler
extends java.lang.Object
Prompts on System.err, reads input from System.in
DefaultInputHandler
public DefaultInputHandler()
Empty no-arg constructor
getInputStream
protected InputStream getInputStream()
Returns the input stream from which the user input should be read.
- the input stream from which the user input should be read.
getPrompt
protected String getPrompt(InputRequest request)
Constructs user prompt from a request.
This implementation adds (choice1,choice2,choice3,...) to the
prompt for
MultipleChoiceInputRequest
s.
request
- the request to construct the prompt for.
Must not be null
.
- the prompt to ask the user
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.