Class JLineInputHandler
- java.lang.Object
-
- org.codehaus.plexus.components.interactivity.AbstractInputHandler
-
- org.codehaus.plexus.components.interactivity.jline.JLineInputHandler
-
- All Implemented Interfaces:
InputHandler
@Named("jline") public class JLineInputHandler extends AbstractInputHandler
Default input handler, that uses the console.- Author:
- Brett Porter
-
-
Constructor Summary
Constructors Constructor Description JLineInputHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class org.codehaus.plexus.components.interactivity.AbstractInputHandler
readMultipleLines
-
-
-
-
Method Detail
-
readLine
public java.lang.String readLine() throws java.io.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.- Returns:
- the line read
- Throws:
java.io.IOException
-
readPassword
public java.lang.String readPassword() throws java.io.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.- Returns:
- the line read
- Throws:
java.io.IOException
-
-