API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. Console View Source
Author(s)
Xueming Shen
Since
1.6
Version
1.11, 06/12/06
Serial
Hierarchy
 Object
      Console
Implements
 Flushable
Subclasses
Description
publicfinal class Console
  Methods to access the character-based console device, if any, associated with the current Java virtual machine.
See also:   
Constructors
private Console ()
Methods
Hide/Show inherited methods
public void flush () [Specified in Flushable]
Flushes the console and forces any buffered output to be written immediately .
public Console format (String fmt, Object args)
  Writes a formatted string to this console's output stream using the specified format string and arguments.
public 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.
public Reader reader ()
  Retrieves the unique Reader object associated with this console.
public String readLine ()
  Reads a single line of text from the console.
public String readLine (String fmt, Object args)
  Provides a formatted prompt, then reads a single line of text from the console.
public char readPassword ()
  Reads a password or passphrase from the console with echoing disabled
public char readPassword (String fmt, Object args)
  Provides a formatted prompt, then reads a password or passphrase from the console with echoing disabled.
public PrintWriter writer ()
  Retrieves the unique PrintWriter object associated with this console.
Fields
Hide/Show inherited fields
Nested Classes
  Console.LineReader
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar