| 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(java.lang.String fmt,
java.lang.Object... args) |
Console |
printf(java.lang.String fmt,
java.lang.Object... args) |
Reader |
reader() |
java.lang.String |
readLine() |
java.lang.String |
readLine(java.lang.String fmt,
java.lang.Object... args) |
char[] |
readPassword() |
char[] |
readPassword(java.lang.String fmt,
java.lang.Object... args) |
PrintWriter |
writer() |
public PrintWriter writer()
public java.lang.String readLine(java.lang.String fmt, java.lang.Object... args)
public java.lang.String readLine()
public char[] readPassword(java.lang.String fmt, java.lang.Object... args)
public char[] readPassword()
public void flush() throws IOException
Flushableflush in interface FlushableIOException - if an I/O error occurs in flushing.