类 DefaultInputHandler
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.codehaus.plexus.components.interactivity.AbstractInputHandler
-
- org.codehaus.plexus.components.interactivity.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
-
-
构造器概要
构造器 构造器 说明 DefaultInputHandler()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.components.interactivity.AbstractInputHandler
readMultipleLines
-
-
-
-
方法详细资料
-
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
-
-