org.codehaus.plexus.components.interactivity

Interface InputHandler

Known Implementing Classes:
AbstractInputHandler, DefaultInputHandler

public interface InputHandler

Manage user input from different sources.
Version:
$Id: InputHandler.java 2649 2005-10-10 16:51:51Z brett $
Author:
Brett Porter

Field Summary

static String
ROLE

Method Summary

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.

Field Details

ROLE

public static final String ROLE

Method Details

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.
Returns:
the line read

readMultipleLines

public List readMultipleLines()
            throws IOException
Returns:
a list of lines read

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.
Returns:
the line read