Package java.text
See: Description
-
Interface Summary Interface Description AttributedCharacterIterator AnAttributedCharacterIterator
allows iteration through both text and related attribute information.CharacterIterator This interface defines a protocol for bidirectional iteration over text. -
Class Summary 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 TheBreakIterator
class implements methods for finding the location of boundaries in text.ChoiceFormat AChoiceFormat
allows you to attach a format to a range of numbers.CollationElementIterator TheCollationElementIterator
class is used as an iterator to walk through each character of an international string.CollationKey ACollationKey
represents aString
under the rules of a specificCollator
object.Collator TheCollator
class performs locale-sensitiveString
comparison.DateFormat DateFormat
is an abstract class for date/time formatting subclasses which formats and parses dates or time in a language-independent manner.DateFormat.Field Defines constants that are used as attribute keys in theAttributedCharacterIterator
returned fromDateFormat.formatToCharacterIterator
and as field identifiers inFieldPosition
.DateFormatSymbols 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.DecimalFormat DecimalFormat
is a concrete subclass ofNumberFormat
that formats decimal numbers.DecimalFormatSymbols This class represents the set of symbols (such as the decimal separator, the grouping separator, and so on) needed byDecimalFormat
to format numbers.FieldPosition FieldPosition
is a simple class used byFormat
and its subclasses to identify fields in formatted output.Format Format
is an abstract base class for formatting locale-sensitive information such as dates, messages, and numbers.Format.Field Defines constants that are used as attribute keys in theAttributedCharacterIterator
returned fromFormat.formatToCharacterIterator
and as field identifiers inFieldPosition
.MessageFormat MessageFormat
provides a means to produce concatenated messages in a language-neutral way.MessageFormat.Field Defines constants that are used as attribute keys in theAttributedCharacterIterator
returned fromMessageFormat.formatToCharacterIterator
.Normalizer This class provides the methodnormalize
which transforms Unicode text into an equivalent composed or decomposed form, allowing for easier sorting and searching of text.NumberFormat NumberFormat
is the abstract base class for all number formats.NumberFormat.Field Defines constants that are used as attribute keys in theAttributedCharacterIterator
returned fromNumberFormat.formatToCharacterIterator
and as field identifiers inFieldPosition
.ParsePosition ParsePosition
is a simple class used byFormat
and its subclasses to keep track of the current position during parsing.RuleBasedCollator TheRuleBasedCollator
class is a concrete subclass ofCollator
that provides a simple, data-driven, table collator.SimpleDateFormat SimpleDateFormat
is a concrete class for formatting and parsing dates in a locale-sensitive manner.StringCharacterIterator StringCharacterIterator
implements theCharacterIterator
protocol for aString
. -
Enum Summary 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 Summary Exception Description ParseException Signals that an error has been reached unexpectedly while parsing.
Package java.text Description
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
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-java/text/package-summary.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.