Modifier and Type | Method and Description |
---|---|
static Console |
console() |
void |
flush()
Flushes the stream represented by this class,
so that any buffered data is written to the stream.
|
Console |
format(String fmt,
Object... args) |
Console |
printf(String fmt,
Object... args) |
Reader |
reader() |
String |
readLine() |
String |
readLine(String fmt,
Object... args) |
char[] |
readPassword() |
char[] |
readPassword(String fmt,
Object... args) |
PrintWriter |
writer() |
public PrintWriter writer()
public char[] readPassword(String fmt, Object... args)
public char[] readPassword()
public void flush() throws IOException
Flushable
flush
in interface Flushable
IOException
- if an I/O error occurs in flushing.