java.util
Class Formatter
java.lang.Object
java.util.Formatter
- All Implemented Interfaces:
- Closeable, Flushable
- public final class Formatter
- extends Object
- implements Closeable, Flushable
|
Constructor Summary |
Formatter()
|
Formatter(File)
|
Formatter(File,
String)
|
Formatter(File,
String,
Locale)
|
Formatter(OutputStream)
|
Formatter(OutputStream,
String)
|
Formatter(OutputStream,
String,
Locale)
|
Formatter(PrintStream)
|
Formatter(Appendable)
|
Formatter(Appendable,
Locale)
|
Formatter(String)
|
Formatter(String,
String)
|
Formatter(String,
String,
Locale)
|
Formatter(Locale)
|
fsPattern
private static Pattern fsPattern
lastException
private IOException lastException
l
private Locale l
a
private Appendable a
MAX_FD_CHARS
private static final int MAX_FD_CHARS
scaleUp
private static double scaleUp
zero
private char zero
formatSpecifier
private static final String formatSpecifier
Formatter
public Formatter()
Formatter
public Formatter(Appendable)
Formatter
public Formatter(Locale)
Formatter
public Formatter(Appendable,
Locale)
Formatter
public Formatter(String)
throws FileNotFoundException
- Throws:
FileNotFoundException
Formatter
public Formatter(String,
String)
throws FileNotFoundException,
UnsupportedEncodingException
- Throws:
FileNotFoundException
UnsupportedEncodingException
Formatter
public Formatter(String,
String,
Locale)
throws FileNotFoundException,
UnsupportedEncodingException
- Throws:
FileNotFoundException
UnsupportedEncodingException
Formatter
public Formatter(File)
throws FileNotFoundException
- Throws:
FileNotFoundException
Formatter
public Formatter(File,
String)
throws FileNotFoundException,
UnsupportedEncodingException
- Throws:
FileNotFoundException
UnsupportedEncodingException
Formatter
public Formatter(File,
String,
Locale)
throws FileNotFoundException,
UnsupportedEncodingException
- Throws:
FileNotFoundException
UnsupportedEncodingException
Formatter
public Formatter(PrintStream)
Formatter
public Formatter(OutputStream)
Formatter
public Formatter(OutputStream,
String)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
Formatter
public Formatter(OutputStream,
String,
Locale)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
init
private void init(Appendable,
Locale)
setZero
private void setZero()
locale
public Locale locale()
out
public Appendable out()
toString
public String toString()
- Overrides:
toString in class Object
flush
public void flush()
- Specified by:
flush in interface Flushable
close
public void close()
- Specified by:
close in interface Closeable
ensureOpen
private void ensureOpen()
ioException
public IOException ioException()
format
public transient Formatter format(String,
Object[])
format
public transient Formatter format(Locale,
String,
Object[])
parse
private Formatter.FormatString[] parse(String)
checkText
private void checkText(String)
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.