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
,org.codehaus.plexus.logging.LogEnabled
,org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
,org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
public class DefaultInputHandler
extends AbstractInputHandler
implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
Default input handler, that uses the console.
- Version:
- $Id: DefaultInputHandler.java 2649 2005-10-10 16:51:51Z brett $
- Author:
- Brett Porter
-
Field Summary
Fields inherited from interface org.codehaus.plexus.components.interactivity.InputHandler
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.codehaus.plexus.components.interactivity.AbstractInputHandler
readMultipleLines
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
DefaultInputHandler
public DefaultInputHandler()
-
-
Method Details
-
readLine
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 interfaceInputHandler
- Returns:
- the line read
- Throws:
IOException
-
readPassword
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 interfaceInputHandler
- Returns:
- the line read
- Throws:
IOException
-
initialize
public void initialize() throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException- Specified by:
initialize
in interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
- Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
-
dispose
public void dispose()- Specified by:
dispose
in interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
-