Example usage for Java java.io Console fields, constructors, methods, implement or subclass
The text is from its open source code.
Reader | reader |
void | flush() Flushes the console and forces any buffered output to be written immediately . |
Class> | getClass() Returns the runtime class of this Object . |
Console | printf(String format, Object... args) A convenience method to write a formatted string to this console's output stream using the specified format string and arguments. |
char[] | readline(boolean zeroOut) |
String | readLine() Reads a single line of text from the console. |
String | readLine(String fmt, Object... args) Provides a formatted prompt, then reads a single line of text from the console. |
char[] | readPassword(String fmt, Object... args) Provides a formatted prompt, then reads a password or passphrase from the console with echoing disabled. |
char[] | readPassword() Reads a password or passphrase from the console with echoing disabled |
PrintWriter | writer() Retrieves the unique java.io.PrintWriter PrintWriter object associated with this console. |