JML

java.util
Class Formatter

java.lang.Object
  extended byjava.util.Formatter
All Implemented Interfaces:
Closeable, Flushable

public final class Formatter
extends Object
implements Closeable, Flushable


Nested Class Summary
static class Formatter.BigDecimalLayoutForm
           
private static class Formatter.Conversion
           
private static class Formatter.DateTime
           
private  class Formatter.FixedString
           
private static class Formatter.Flags
           
private  class Formatter.FormatSpecifier
           
private static interface Formatter.FormatString
           
 
Field Summary
private  Appendable a
           
private static String formatSpecifier
           
private static Pattern fsPattern
           
private  Locale l
           
private  IOException lastException
           
private static int MAX_FD_CHARS
           
private static double scaleUp
           
private  char zero
           
 
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)
           
 
Method Summary
private  void checkText(String)
           
 void close()
           
private  void ensureOpen()
           
 void flush()
           
 Formatter format(String, Object[])
           
 Formatter format(Locale, String, Object[])
           
private  void init(Appendable, Locale)
           
 IOException ioException()
           
 Locale locale()
           
 Appendable out()
           
private  Formatter.FormatString[] parse(String)
           
private  void setZero()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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

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.