org.codehaus.plexus.components.interactivity
Class DefaultInputHandler
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.components.interactivity.AbstractInputHandler
org.codehaus.plexus.components.interactivity.DefaultInputHandler
- All Implemented Interfaces:
- InputHandler, LogEnabled, Disposable, Initializable
public class DefaultInputHandler
- extends AbstractInputHandler
- implements Initializable, Disposable
Default input handler, that uses the console.
- Version:
- $Id: DefaultInputHandler.java 2649 2005-10-10 16:51:51Z brett $
- Author:
- Brett Porter
Fields inherited from interface org.codehaus.plexus.components.interactivity.InputHandler |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultInputHandler
public DefaultInputHandler()
readLine
public String readLine()
throws IOException
- Description copied from interface:
InputHandler
- Read a single line of input, swalling the newline at the end.
If the input can be echoed, it will be.
- Specified by:
readLine
in interface InputHandler
- Returns:
- the line read
- Throws:
IOException
readPassword
public String readPassword()
throws IOException
- Description copied from interface:
InputHandler
- Read a single line of input, swalling the newline at the end.
This method guarantees input is not echoed.
- Specified by:
readPassword
in interface InputHandler
- Returns:
- the line read
- Throws:
IOException
initialize
public void initialize()
throws InitializationException
- Specified by:
initialize
in interface Initializable
- Throws:
InitializationException
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable