@Component(role=Prompter.class, instantiationStrategy="per-lookup") public class Prompter extends Object
| Constructor and Description |
|---|
Prompter() |
Prompter(InputStream in,
OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
jline.console.ConsoleReader |
getConsole() |
String |
prompt(String message) |
String |
prompt(String message,
Character mask) |
String |
promptWithDefaultValue(String message,
String defaultValue) |
public Prompter()
throws IOException
IOExceptionpublic Prompter(InputStream in, OutputStream out) throws IOException
IOExceptionpublic jline.console.ConsoleReader getConsole()
public String prompt(String message, Character mask) throws IOException
IOExceptionpublic String prompt(String message) throws IOException
IOExceptionpublic String promptWithDefaultValue(String message, String defaultValue) throws IOException
IOExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.