org.codehaus.plexus.components.interactivity.jline
Class JLineInputHandler

java.lang.Object
  extended byorg.codehaus.plexus.logging.AbstractLogEnabled
      extended byorg.codehaus.plexus.components.interactivity.AbstractInputHandler
          extended byorg.codehaus.plexus.components.interactivity.jline.JLineInputHandler
All Implemented Interfaces:
org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, org.codehaus.plexus.components.interactivity.InputHandler, org.codehaus.plexus.logging.LogEnabled

public class JLineInputHandler
extends org.codehaus.plexus.components.interactivity.AbstractInputHandler
implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

Default input handler, that uses the console.

Version:
$Id: JLineInputHandler.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
JLineInputHandler()
           
 
Method Summary
 void initialize()
           
 java.lang.String readLine()
           
 java.lang.String readPassword()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JLineInputHandler

public JLineInputHandler()
Method Detail

readLine

public java.lang.String readLine()
                          throws java.io.IOException
Specified by:
readLine in interface org.codehaus.plexus.components.interactivity.InputHandler
Throws:
java.io.IOException

readPassword

public java.lang.String readPassword()
                              throws java.io.IOException
Specified by:
readPassword in interface org.codehaus.plexus.components.interactivity.InputHandler
Throws:
java.io.IOException

initialize

public void initialize()
                throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException


Copyright © 2001-2007 Codehaus. All Rights Reserved.