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. |
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/package-summary.html