org.codehaus.plexus.components.interactivity
Class DefaultInputHandler
- Disposable, Initializable, InputHandler
public class DefaultInputHandler
implements Initializable, Disposable
Default input handler, that uses the console.
$Id: DefaultInputHandler.java 2649 2005-10-10 16:51:51Z brett $
void | dispose()
|
void | initialize()
|
String | readLine() - Read a single line of input, swalling the newline at the end.
|
String | readPassword() - Read a single line of input, swalling the newline at the end.
|
consoleReader
private BufferedReader consoleReader
dispose
public void dispose()
initialize
public void initialize()
throws InitializationException
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.
- readLine in interface InputHandler
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.
- readPassword in interface InputHandler