public class JlineCommandInput extends CommandInput
| Constructor and Description |
|---|
JlineCommandInput(org.jline.reader.impl.LineReaderImpl console,
String prompt) |
| Modifier and Type | Method and Description |
|---|---|
org.jline.reader.impl.LineReaderImpl |
getConsole() |
String |
readLine()
Reads a single line from linput.
|
String |
readMaskedString(String prompt)
Reads input without echo'ing back keyboard input.
|
closepublic JlineCommandInput(org.jline.reader.impl.LineReaderImpl console,
String prompt)
console - Jline console readerprompt - Prompt stringpublic final org.jline.reader.impl.LineReaderImpl getConsole()
public String readLine() throws IOException
CommandInputreadLine in class CommandInputIOExceptionpublic String readMaskedString(String prompt) throws IOException
CommandInputreadMaskedString in class CommandInputIOExceptionCopyright © 2008–2019. All rights reserved.