Class JLineInputHandler
java.lang.Object
org.codehaus.plexus.components.interactivity.AbstractInputHandler
org.codehaus.plexus.components.interactivity.jline.JLineInputHandler
- All Implemented Interfaces:
InputHandler
Default input handler, that uses the console.
- Author:
- Brett Porter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadLine()
Read a single line of input, swalling the newline at the end.Read a single line of input, swalling the newline at the end.Methods inherited from class org.codehaus.plexus.components.interactivity.AbstractInputHandler
readMultipleLines
-
Constructor Details
-
JLineInputHandler
public JLineInputHandler()
-
-
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.- 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.- Returns:
- the line read
- Throws:
IOException
-