Package 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:
- 1.1
Interface | Description |
---|---|
AttributedCharacterIterator | An |
CharacterIterator | This interface defines a protocol for bidirectional iteration over text. |
Class | Description |
---|---|
Annotation | An Annotation object is used as a wrapper for a text attribute value if the attribute has annotation characteristics. |
AttributedCharacterIterator.Attribute | Defines attribute keys that are used to identify text attributes. |
AttributedString | An AttributedString holds text and related attribute information. |
Bidi | This class implements the Unicode Bidirectional Algorithm. |
BreakIterator | The |
ChoiceFormat | A |
CollationElementIterator | The |
CollationKey | A |
Collator | The |
DateFormat |
|
DateFormat.Field | Defines constants that are used as attribute keys in the |
DateFormatSymbols |
|
DecimalFormat |
|
DecimalFormatSymbols | This class represents the set of symbols (such as the decimal separator, the grouping separator, and so on) needed by |
FieldPosition |
|
Format |
|
Format.Field | Defines constants that are used as attribute keys in the |
MessageFormat |
|
MessageFormat.Field | Defines constants that are used as attribute keys in the |
Normalizer | This class provides the method |
NumberFormat |
|
NumberFormat.Field | Defines constants that are used as attribute keys in the |
ParsePosition |
|
RuleBasedCollator | The |
SimpleDateFormat |
|
StringCharacterIterator |
|
Enum | Description |
---|---|
Normalizer.Form | This enum provides constants of the four Unicode normalization forms that are described in Unicode Standard Annex #15 — Unicode Normalization Forms and two methods to access them. |
Exception | Description |
---|---|
ParseException | Signals that an error has been reached unexpectedly while parsing. |