API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util. Formatter View Source
Author(s)
Iris Clark
Since
1.5
Version
1.26, 06/28/06
Serial
Hierarchy
 Object
      Formatter
Implements
 Closeable
 Flushable
Subclasses
Description
publicfinal class Formatter
  An interpreter for printf-style format strings.
See also:   
Constructors
public Formatter ()
  Constructs a new formatter.
public Formatter (Appendable a)
  Constructs a new formatter with the specified destination.
public Formatter (Appendable a, Locale l)
  Constructs a new formatter with the specified destination and locale.
public Formatter (File file) throws FileNotFoundException
  Constructs a new formatter with the specified file.
public Formatter (File file, String csn) throws FileNotFoundException UnsupportedEncodingException
  Constructs a new formatter with the specified file and charset.
public Formatter (File file, String csn, Locale l) throws FileNotFoundException UnsupportedEncodingException
  Constructs a new formatter with the specified file, charset, and locale.
public Formatter (Locale l)
  Constructs a new formatter with the specified locale.
public Formatter (OutputStream os)
  Constructs a new formatter with the specified output stream.
public Formatter (OutputStream os, String csn) throws UnsupportedEncodingException
  Constructs a new formatter with the specified output stream and charset.
public Formatter (OutputStream os, String csn, Locale l) throws UnsupportedEncodingException
  Constructs a new formatter with the specified output stream, charset, and locale.
public Formatter (PrintStream ps)
  Constructs a new formatter with the specified print stream.
public Formatter (String fileName) throws FileNotFoundException
  Constructs a new formatter with the specified file name.
public Formatter (String fileName, String csn) throws FileNotFoundException UnsupportedEncodingException
  Constructs a new formatter with the specified file name and charset.
public Formatter (String fileName, String csn, Locale l) throws FileNotFoundException UnsupportedEncodingException
  Constructs a new formatter with the specified file name, charset, and locale.
Methods
Hide/Show inherited methods
public void close () [Specified in Closeable]
  Closes this formatter.
public void flush () [Specified in Flushable]
  Flushes this formatter.
public Formatter format (Locale l, String format, Object args)
  Writes a formatted string to this object's destination using the specified locale, format string, and arguments.
public Formatter format (String format, Object args)
  Writes a formatted string to this object's destination using the specified format string and arguments.
public IOException ioException ()
  Returns the IOException last thrown by this formatter's Appendable.
public Locale locale ()
  Returns the locale set by the construction of this formatter.
public Appendable out ()
  Returns the destination for the output.
public String toString ()
  Returns the result of invoking toString() on the destination for the output.
Fields
Hide/Show inherited fields
Nested Classes
  Formatter.BigDecimalLayoutForm
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar