APIdia Launch Partner
Top Description Interfaces Classes
module java.base

Package java.text


Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages. This means an application or library 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:

Since
1.1

Interface Summary

Modifier and TypeInterface and Description
public interface
AttributedCharacterIterator

An AttributedCharacterIterator allows iteration through both text and related attribute information.

public interface
CharacterIterator

This interface defines a protocol for bidirectional iteration over text.

Class Summary

Modifier and TypeClass and Description
public class
Annotation

An Annotation object is used as a wrapper for a text attribute value if the attribute has annotation characteristics.

public class
AttributedString

An AttributedString holds text and related attribute information.

pack-priv class
public class
Bidi

This class implements the Unicode Bidirectional Algorithm.

public abstract class
BreakIterator

The BreakIterator class implements methods for finding the location of boundaries in text.

pack-priv class
CalendarBuilder

CalendarBuilder keeps field-value pairs for setting the calendar fields of the given Calendar.

pack-priv class
CharacterIteratorFieldDelegate

CharacterIteratorFieldDelegate combines the notifications from a Format into a resulting AttributedCharacterIterator.

public class
ChoiceFormat

ChoiceFormat is a concrete subclass of NumberFormat that allows you to attach a format to a range of numbers.

public class
CollationElementIterator

The CollationElementIterator class is used as an iterator to walk through each character of an international string.

public abstract class
CollationKey

A CollationKey represents a String under the rules of a specific Collator object.

public abstract class
Collator

The Collator class performs locale-sensitive String comparison.

public class
CompactNumberFormat

CompactNumberFormat is a concrete subclass of NumberFormat that formats a decimal number in a localized compact form.

public abstract class
DateFormat

DateFormat is an abstract class for date/time formatting subclasses which formats and parses dates or time in a language-independent manner.

public class
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.

public class
DecimalFormat

DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers in a localized manner.

public class
DecimalFormatSymbols

This class represents the set of symbols (such as the decimal separator, the grouping separator, and so on) needed by DecimalFormat to format numbers.

pack-priv class
DigitList

Digit List.

pack-priv class
DontCareFieldPosition

DontCareFieldPosition defines no-op FieldDelegate.

pack-priv class
EntryPair

This is used for building contracting character tables.

public class
FieldPosition

FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted output.

public abstract class
Format

Format is an abstract base class for formatting locale-sensitive information such as dates, messages, numbers, and lists.

public class
ListFormat

ListFormat formats or parses a list of strings in a locale-sensitive way.

pack-priv class
MergeCollation

Utility class for normalizing and merging patterns for collation.

public class
MessageFormat

MessageFormat provides a means to produce concatenated messages in a language-neutral way.

public class
Normalizer

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.

public abstract class
NumberFormat

NumberFormat is the abstract base class for all number formats.

public class
ParseException

Signals that an error has been reached unexpectedly while parsing.

public class
ParsePosition

ParsePosition is a simple class used by Format and its subclasses to keep track of the current position during parsing.

pack-priv class
PatternEntry

Utility class for normalizing and merging patterns for collation.

pack-priv class
RBCollationTables

This class contains the static state of a RuleBasedCollator: The various tables that are used by the collation routines.

pack-priv class
RBTableBuilder

This class contains all the code to parse a RuleBasedCollator pattern and build a RBCollationTables object from it.

pack-priv class
RuleBasedCollationKey

A RuleBasedCollationKey is a concrete implementation of CollationKey class.

public class
RuleBasedCollator

The RuleBasedCollator class is a concrete subclass of Collator that provides a simple, data-driven, table collator.

public class
SimpleDateFormat

SimpleDateFormat is a concrete class for formatting and parsing dates in a locale-sensitive manner.

pack-priv class
StringBufFactory

StringBufFactory creates implementations of Format.StringBuf, which is an interface with the minimum overlap required to support StringBuffer and StringBuilder in Format.

public class
StringCharacterIterator

StringCharacterIterator implements the CharacterIterator protocol for a String.