java.text - JRE Emulation | JRE Emulation
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

Interfaces

AttributedCharacterIterator Extends the CharacterIterator interface, adding support for iterating over attributes and not only characters. 
CharacterIterator An interface for the bidirectional iteration over a group of characters. 

Classes

Annotation Wrapper for a text attribute value which represents an annotation. 
AttributedCharacterIterator.Attribute Defines keys for text attributes. 
AttributedString Holds a string with attributes describing the characters of this string. 
ChoiceFormat Returns a fixed string based on a numeric value. 
CollationKey Represents a string under the rules of a specific Collator object. 
Collator Performs locale-sensitive string comparison. 
DateFormat Formats or parses dates and times. 
DateFormat.Field The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that the formatToCharacterIterator(Object) method returns. 
DateFormatSymbols Encapsulates localized 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 A concrete subclass of NumberFormat that formats decimal numbers. 
DecimalFormatSymbols Encapsulates the set of symbols (such as the decimal separator, the grouping separator, and so on) needed by DecimalFormat to format numbers. 
FieldPosition Identifies fields in formatted strings. 
Format The base class for all formats. 
Format.Field Inner class used to represent Format attributes in the AttributedCharacterIterator that the formatToCharacterIterator() method returns in Format subclasses. 
IOSCollator A concrete implementation class for Collation for iOS. 
MessageFormat Produces concatenated messages in language-neutral way. 
MessageFormat.Field The instances of this inner class are used as attribute keys in AttributedCharacterIterator that the formatToCharacterIterator(Object) method returns. 
Normalizer Provides normalization functions according to Unicode Standard Annex #15: Unicode Normalization Forms
NumberFormat The abstract base class for all number formats. 
NumberFormat.Field The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that the formatToCharacterIterator(Object) method returns. 
ParsePosition Tracks the current position in a parsed string. 
SimpleDateFormat Formats and parses dates in a locale-sensitive manner. 
StringCharacterIterator An implementation of CharacterIterator for strings. 

Enums

Normalizer.Form The normalization forms supported by the Normalizer. 

Exceptions

ParseException Signals that an error has been reached unexpectedly while parsing.