类 DefaultInputHandler

  • 所有已实现的接口:
    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.
    版本:
    $Id: DefaultInputHandler.java 2649 2005-10-10 16:51:51Z brett $
    作者:
    Brett Porter
    • 字段概要

      • 从接口继承的字段 org.codehaus.plexus.components.interactivity.InputHandler

        ROLE
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void dispose()  
      void initialize()  
      java.lang.String readLine()
      Read a single line of input, swalling the newline at the end.
      java.lang.String readPassword()
      Read a single line of input, swalling the newline at the end.
      • 从类继承的方法 org.codehaus.plexus.logging.AbstractLogEnabled

        enableLogging, getLogger, setupLogger, setupLogger, setupLogger
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • DefaultInputHandler

        public DefaultInputHandler()
    • 方法详细资料

      • readLine

        public java.lang.String readLine()
                                  throws java.io.IOException
        从接口复制的说明: InputHandler
        Read a single line of input, swalling the newline at the end. If the input can be echoed, it will be.
        指定者:
        readLine 在接口中 InputHandler
        返回:
        the line read
        抛出:
        java.io.IOException
      • readPassword

        public java.lang.String readPassword()
                                      throws java.io.IOException
        从接口复制的说明: InputHandler
        Read a single line of input, swalling the newline at the end. This method guarantees input is not echoed.
        指定者:
        readPassword 在接口中 InputHandler
        返回:
        the line read
        抛出:
        java.io.IOException
      • initialize

        public void initialize()
                        throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
        指定者:
        initialize 在接口中 org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
        抛出:
        org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
      • dispose

        public void dispose()
        指定者:
        dispose 在接口中 org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable