public class ConsoleAdapter extends Object
Modifier and Type | Field and Description |
---|---|
protected static ConsoleAdapter |
instance |
Modifier | Constructor and Description |
---|---|
protected |
ConsoleAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
flush() |
Console |
format(String fmt,
Object... args) |
static ConsoleAdapter |
getInstance() |
Console |
printf(String format,
Object... args) |
Boolean |
promptBoolean(String string,
Boolean deflt) |
Integer |
promptInteger(String string,
Integer deflt) |
String |
promptString(String string,
String deflt) |
Reader |
reader() |
String |
readLine() |
String |
readLine(String fmt,
Object... args) |
char[] |
readPassword() |
char[] |
readPassword(String fmt,
Object... args) |
PrintWriter |
writer() |
protected static ConsoleAdapter instance
public static ConsoleAdapter getInstance()
public void flush()
public Reader reader()
public String readLine()
public char[] readPassword()
public PrintWriter writer()
Copyright © 2015 SeqWare. All rights reserved.