org.apache.tools.ant.input

Class GreedyInputHandler

Implemented Interfaces:
InputHandler

public class GreedyInputHandler
extends DefaultInputHandler

Prompts on System.err, reads input from System.in until EOF
Since:
Ant 1.7

Constructor Summary

GreedyInputHandler()
Empty no-arg constructor

Method Summary

void
handleInput(InputRequest request)
Prompts and requests input.

Methods inherited from class org.apache.tools.ant.input.DefaultInputHandler

getInputStream, getPrompt, handleInput

Constructor Details

GreedyInputHandler

public GreedyInputHandler()
Empty no-arg constructor

Method Details

handleInput

public void handleInput(InputRequest request)
            throws BuildException
Prompts and requests input.
Specified by:
handleInput in interface InputHandler
Overrides:
handleInput in interface DefaultInputHandler
Parameters:
request - the request to handle
Throws:
BuildException - if not possible to read from console, or if input is invalid.