java.text |
Provides classes and interfaces for handling text, dates, numbers, and messages
in a manner independent of natural languages. This means your main application
or applet can be written to be language-independent, and it can rely upon
separate, dynamically-linked localized resources. This allows the flexibility
of adding localizations for new localizations at any time.
These classes are capable of formatting dates, numbers, and messages, parsing;
searching and sorting strings; and iterating over characters, words, sentences,
and line breaks. This package contains three main groups of classes and
interfaces:
- Classes for iteration over text
- Classes for formatting and parsing
- Classes for string collation
@since JDK1.1
|
Java Source File Name | Type | Comment |
Annotation.java | Class | An Annotation object is used as a wrapper for a text attribute value if
the attribute has annotation characteristics. |
AttributedCharacterIterator.java | Interface | An AttributedCharacterIterator allows iteration through both text and
related attribute information.
An attribute is a key/value pair, identified by the key. |
AttributedString.java | Class | An AttributedString holds text and related attribute information. |
Bidi.java | Class | This class implements the Unicode Bidirectional Algorithm.
A Bidi object provides information on the bidirectional reordering of the text
used to create it. |
BreakDictionary.java | Class | This is the class that represents the list of known words used by
DictionaryBasedBreakIterator. |
BreakIterator.java | Class | The BreakIterator class implements methods for finding
the location of boundaries in text. |
CharacterIterator.java | Interface | This interface defines a protocol for bidirectional iteration over text.
The iterator iterates over a bounded sequence of characters. |
CharacterIteratorFieldDelegate.java | Class | CharacterIteratorFieldDelegate combines the notifications from a Format
into a resulting AttributedCharacterIterator . |
ChoiceFormat.java | Class | A ChoiceFormat allows you to attach a format to a range of numbers.
It is generally used in a MessageFormat for handling plurals.
The choice is specified with an ascending list of doubles, where each item
specifies a half-open interval up to the next item:
X matches j if and only if limit[j] <= X < limit[j+1]
If there is no match, then either the first or last index is used, depending
on whether the number (X) is too low or too high. |
CollationElementIterator.java | Class | The CollationElementIterator class is used as an iterator
to walk through each character of an international string. |
CollationKey.java | Class | A CollationKey represents a String under the
rules of a specific Collator object. |
CollationRules.java | Class | CollationRules contains the default en_US collation rules as a base
for building other collation tables. |
Collator.java | Class | The Collator class performs locale-sensitive
String comparison. |
DateFormat.java | Class | DateFormat is an abstract class for date/time formatting subclasses which
formats and parses dates or time in a language-independent manner.
The date/time formatting subclass, such as SimpleDateFormat, allows for
formatting (i.e., date -> text), parsing (text -> date), and
normalization. |
DateFormatSymbols.java | Class | DateFormatSymbols is a public class for encapsulating
localizable date-time formatting data, such as the names of the
months, the names of the days of the week, and the time zone data.
DateFormat and SimpleDateFormat both use
DateFormatSymbols to encapsulate this information.
Typically you shouldn't use DateFormatSymbols directly.
Rather, you are encouraged to create a date-time formatter with the
DateFormat class's factory methods: getTimeInstance ,
getDateInstance , or getDateTimeInstance .
These methods automatically create a DateFormatSymbols for
the formatter so that you don't have to. |
DecimalFormat.java | Class | DecimalFormat is a concrete subclass of
NumberFormat that formats decimal numbers. |
DecimalFormatSymbols.java | Class | This class represents the set of symbols (such as the decimal separator,
the grouping separator, and so on) needed by DecimalFormat
to format numbers. |
DictionaryBasedBreakIterator.java | Class | A subclass of RuleBasedBreakIterator that adds the ability to use a dictionary
to further subdivide ranges of text beyond what is possible using just the
state-table-based algorithm. |
DigitList.java | Class | Digit List. |
DontCareFieldPosition.java | Class | DontCareFieldPosition defines no-op FieldDelegate. |
EntryPair.java | Class | This is used for building contracting character tables. |
FieldPosition.java | Class | FieldPosition is a simple class used by Format
and its subclasses to identify fields in formatted output. |
Format.java | Class | Format is an abstract base class for formatting locale-sensitive
information such as dates, messages, and numbers.
Format defines the programming interface for formatting
locale-sensitive objects into String s (the
format method) and for parsing String s back
into objects (the parseObject method).
Generally, a format's parseObject method must be able to parse
any string formatted by its format method. |
MergeCollation.java | Class | Utility class for normalizing and merging patterns for collation.
Patterns are strings of the form *, where has the
form:
:= *
:= {"/"}
:= "=", ",", ";", "<", "&"
, and are both arbitrary strings.
unquoted whitespaces are ignored.
'xxx' can be used to quote characters
One difference from Collator is that & is used to reset to a current
point. |
MessageFormat.java | Class | MessageFormat provides a means to produce concatenated
messages in a language-neutral way. |
Normalizer.java | Class | This class provides the method normalize which transforms Unicode
text into an equivalent composed or decomposed form, allowing for easier
sorting and searching of text.
The normalize method supports the standard normalization forms
described in
Unicode Standard Annex #15 — Unicode Normalization Forms.
Characters with accents or other adornments can be encoded in
several different ways in Unicode. |
NumberFormat.java | Class | NumberFormat is the abstract base class for all number
formats. |
ParseException.java | Class | Signals that an error has been reached unexpectedly
while parsing. |
ParsePosition.java | Class | ParsePosition is a simple class used by Format
and its subclasses to keep track of the current position during parsing. |
PatternEntry.java | Class | Utility class for normalizing and merging patterns for collation. |
RBCollationTables.java | Class | This class contains the static state of a RuleBasedCollator: The various
tables that are used by the collation routines. |
RBTableBuilder.java | Class | This class contains all the code to parse a RuleBasedCollator pattern
and build a RBCollationTables object from it. |
RuleBasedBreakIterator.java | Class | A subclass of BreakIterator whose behavior is specified using a list of rules.
There are two kinds of rules, which are separated by semicolons: substitutions
and regular expressions.
A substitution rule defines a name that can be used in place of an expression. |
RuleBasedCollationKey.java | Class | A RuleBasedCollationKey is a concrete implementation of CollationKey class. |
RuleBasedCollator.java | Class | The RuleBasedCollator class is a concrete subclass of
Collator that provides a simple, data-driven, table
collator. |
SimpleDateFormat.java | Class | SimpleDateFormat is a concrete class for formatting and
parsing dates in a locale-sensitive manner. |
StringCharacterIterator.java | Class | StringCharacterIterator implements the
CharacterIterator protocol for a String . |