API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.text. Format View Source
Author(s)
Mark Davis
Since
Version
1.37, 12/03/05
Serial
Hierarchy
 Object
      Format
Implements
 Serializable
 Cloneable
Subclasses
Description
publicabstract abstract class Format
  Format is an abstract base class for formatting locale-sensitive information such as dates, messages, and numbers.
Constructors
protected Format ()
  Sole constructor.
Methods
Hide/Show inherited methods
public Object clone ()
  Creates and returns a copy of this object.
pack-private AttributedCharacterIterator createAttributedCharacterIterator (AttributedCharacterIterator iterators)
  Creates an AttributedCharacterIterator containg the concatenated contents of the passed in AttributedCharacterIterators.
pack-private AttributedCharacterIterator createAttributedCharacterIterator (AttributedCharacterIterator iterator, Attribute key, Object value)
  Creates an AttributedCharacterIterator with the contents of iterator and the additional attribute key value.
pack-private AttributedCharacterIterator createAttributedCharacterIterator (String s)
  Creates an AttributedCharacterIterator for the String s.
pack-private AttributedCharacterIterator createAttributedCharacterIterator (String string, Attribute key, Object value)
  Returns an AttributedCharacterIterator with the String string and additional key/value pair key, value.
publicfinal String format (Object obj)
  Formats an object to produce a string.
publicabstract StringBuffer format (Object obj, StringBuffer toAppendTo, FieldPosition pos)
  Formats an object and appends the resulting text to a given string buffer.
public AttributedCharacterIterator formatToCharacterIterator (Object obj)
  Formats an Object producing an AttributedCharacterIterator.
public Object parseObject (String source) throws ParseException
  Parses text from the beginning of the given string to produce an object.
publicabstract Object parseObject (String source, ParsePosition pos)
  Parses text from a string to produce an object.
Fields
Hide/Show inherited fields
Nested Classes
  Format.Field
Defines constants that are used as attribute keys in the AttributedCharacterIterator returned from Format.formatToCharacterIterator and as field identifiers in FieldPosition.
  Format.FieldDelegate
FieldDelegate is notified by the various Format implementations as they are formatting the Objects.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar