Java java.io Console fields, constructors, methods, implement or subclass

Example usage for Java java.io Console fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.io Console.

The text is from its open source code.

Implementation

java.io.Console has the following implementations.
Click this link to see all its implementation.

Field

Readerreader

Method

voidflush()
Flushes the console and forces any buffered output to be written immediately .
ClassgetClass()
Returns the runtime class of this Object .
Consoleprintf(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)
StringreadLine()
Reads a single line of text from the console.
StringreadLine(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
PrintWriterwriter()
Retrieves the unique java.io.PrintWriter PrintWriter object associated with this console.