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 input.
|
String |
readMaskedString(String prompt)
Reads input without echoing 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 CommandInputIOException - allows any communication error.public String readMaskedString(String prompt) throws IOException
CommandInputreadMaskedString in class CommandInputprompt - The full or partial input that user types.IOException - allows any communication error.Copyright © 2008–2022. All rights reserved.