org.codehaus.plexus.components.interactivity
Interface InputHandler
- AbstractInputHandler, DefaultInputHandler
public interface InputHandler
Manage user input from different sources.
$Id: InputHandler.java 2649 2005-10-10 16:51:51Z brett $
String | readLine() - Read a single line of input, swalling the newline at the end.
|
List | readMultipleLines() - Read a set of lines.
|
String | readPassword() - Read a single line of input, swalling the newline at the end.
|
ROLE
public static final String ROLE
readLine
public String readLine()
throws IOException
Read a single line of input, swalling the newline at the end.
If the input can be echoed, it will be.
readMultipleLines
public List readMultipleLines()
throws IOException
Read a set of lines. Equivalent to multiple calls to
readLine()
.
Ends when an empty line is encountered.
readPassword
public String readPassword()
throws IOException
Read a single line of input, swalling the newline at the end.
This method guarantees input is not echoed.