Name
Package java.text
Synopsis
The java.text
package
consists of classes and interfaces that are useful for writing
internationalized programs that handle local customs, such as date
and time formatting and string alphabetization, correctly.
The NumberFormat
class formats numbers, monetary quantities, and percentages as
appropriate for the default or specified locale.
DateFormat
formats dates and times in a
locale-specific way. The concrete DecimalFormat
and SimpleDateFormat
subclasses of these classes
can be used for customized number, date, and time formatting.
MessageFormat
allows substitution of dynamic
values, including formatted numbers and dates, into static message
strings. ChoiceFormat
formats a number using an
enumerated set of string values. See the Format
superclass for a general description of formatting and parsing
strings with these classes. Collator
compares
strings according to the customary sorting order for a locale.
BreakIterator
scans text to find word, line, and
sentence boundaries following locale-specific rules. The
Bidi
class of Java 1.4 implements the Unicode
“bidirectional” algorithm for
working with languages such as Arabic and Hebrew that display text
right-to-left but display numbers left-to-right.
Interfaces
public interface AttributedCharacterIterator extends CharacterIterator; public interface CharacterIterator extends Cloneable;
Classes
public class Annotation; public static class AttributedCharacterIterator.Attribute implements Serializable; public ...
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.