| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.tools.ant.input.DefaultInputHandler
Prompts on System.err, reads input from System.in
| Constructor Summary | |
| DefaultInputHandler()Empty no-arg constructor | |
| Method Summary | |
| protected  java.io.InputStream | getInputStream()Returns the input stream from which the user input should be read. | 
| protected  java.lang.String | getPrompt(InputRequest request)Constructs user prompt from a request. | 
|  void | handleInput(InputRequest request)Prompts and requests input. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public DefaultInputHandler()
| Method Detail | 
public void handleInput(InputRequest request)
                 throws BuildException
handleInput in interface InputHandlerrequest - the request to handle
BuildException - if not possible to read from consoleprotected java.lang.String getPrompt(InputRequest request)
This implementation adds (choice1,choice2,choice3,...) to the
 prompt for MultipleChoiceInputRequests.
request - the request to construct the prompt for.
                Must not be null.
protected java.io.InputStream getInputStream()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||