java.text

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » text » java.text 
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 JDK1.1
Java Source File NameTypeComment
Annotation.javaClass An Annotation object is used as a wrapper for a text attribute value if the attribute has annotation characteristics.
AttributedCharacterIterator.javaInterface An AttributedCharacterIterator allows iteration through both text and related attribute information.

An attribute is a key/value pair, identified by the key.

AttributedString.javaClass An AttributedString holds text and related attribute information.
Bidi.javaClass This class implements the Unicode Bidirectional Algorithm.

A Bidi object provides information on the bidirectional reordering of the text used to create it.

BreakDictionary.javaClass This is the class that represents the list of known words used by DictionaryBasedBreakIterator.
BreakIterator.javaClass The BreakIterator class implements methods for finding the location of boundaries in text.
CharacterIterator.javaInterface This interface defines a protocol for bidirectional iteration over text. The iterator iterates over a bounded sequence of characters.
CharacterIteratorFieldDelegate.javaClass CharacterIteratorFieldDelegate combines the notifications from a Format into a resulting AttributedCharacterIterator.
ChoiceFormat.javaClass A ChoiceFormat allows you to attach a format to a range of numbers. It is generally used in a MessageFormat for handling plurals. The choice is specified with an ascending list of doubles, where each item specifies a half-open interval up to the next item:
 X matches j if and only if limit[j] <= X < limit[j+1]
 
If there is no match, then either the first or last index is used, depending on whether the number (X) is too low or too high.
CollationElementIterator.javaClass The CollationElementIterator class is used as an iterator to walk through each character of an international string.
CollationKey.javaClass A CollationKey represents a String under the rules of a specific Collator object.
CollationRules.javaClass CollationRules contains the default en_US collation rules as a base for building other collation tables.
Collator.javaClass The Collator class performs locale-sensitive String comparison.
DateFormat.javaClass DateFormat is an abstract class for date/time formatting subclasses which formats and parses dates or time in a language-independent manner. The date/time formatting subclass, such as SimpleDateFormat, allows for formatting (i.e., date -> text), parsing (text -> date), and normalization.
DateFormatSymbols.javaClass 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. DateFormat and SimpleDateFormat both use DateFormatSymbols to encapsulate this information.

Typically you shouldn't use DateFormatSymbols directly. Rather, you are encouraged to create a date-time formatter with the DateFormat class's factory methods: getTimeInstance, getDateInstance, or getDateTimeInstance. These methods automatically create a DateFormatSymbols for the formatter so that you don't have to.

DecimalFormat.javaClass DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers.
DecimalFormatSymbols.javaClass This class represents the set of symbols (such as the decimal separator, the grouping separator, and so on) needed by DecimalFormat to format numbers.
DictionaryBasedBreakIterator.javaClass A subclass of RuleBasedBreakIterator that adds the ability to use a dictionary to further subdivide ranges of text beyond what is possible using just the state-table-based algorithm.
DigitList.javaClass Digit List.
DontCareFieldPosition.javaClass DontCareFieldPosition defines no-op FieldDelegate.
EntryPair.javaClass This is used for building contracting character tables.
FieldPosition.javaClass FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted output.
Format.javaClass Format is an abstract base class for formatting locale-sensitive information such as dates, messages, and numbers.

Format defines the programming interface for formatting locale-sensitive objects into Strings (the format method) and for parsing Strings back into objects (the parseObject method).

Generally, a format's parseObject method must be able to parse any string formatted by its format method.

MergeCollation.javaClass Utility class for normalizing and merging patterns for collation. Patterns are strings of the form *, where has the form: := * := {"/"} := "=", ",", ";", "<", "&" , and are both arbitrary strings. unquoted whitespaces are ignored. 'xxx' can be used to quote characters One difference from Collator is that & is used to reset to a current point.
MessageFormat.javaClass MessageFormat provides a means to produce concatenated messages in a language-neutral way.
Normalizer.javaClass 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. The normalize method supports the standard normalization forms described in Unicode Standard Annex #15 — Unicode Normalization Forms.

Characters with accents or other adornments can be encoded in several different ways in Unicode.

NumberFormat.javaClass NumberFormat is the abstract base class for all number formats.
ParseException.javaClass Signals that an error has been reached unexpectedly while parsing.
ParsePosition.javaClass ParsePosition is a simple class used by Format and its subclasses to keep track of the current position during parsing.
PatternEntry.javaClass Utility class for normalizing and merging patterns for collation.
RBCollationTables.javaClass This class contains the static state of a RuleBasedCollator: The various tables that are used by the collation routines.
RBTableBuilder.javaClass This class contains all the code to parse a RuleBasedCollator pattern and build a RBCollationTables object from it.
RuleBasedBreakIterator.javaClass

A subclass of BreakIterator whose behavior is specified using a list of rules.

There are two kinds of rules, which are separated by semicolons: substitutions and regular expressions.

A substitution rule defines a name that can be used in place of an expression.

RuleBasedCollationKey.javaClass A RuleBasedCollationKey is a concrete implementation of CollationKey class.
RuleBasedCollator.javaClass The RuleBasedCollator class is a concrete subclass of Collator that provides a simple, data-driven, table collator.
SimpleDateFormat.javaClass SimpleDateFormat is a concrete class for formatting and parsing dates in a locale-sensitive manner.
StringCharacterIterator.javaClass StringCharacterIterator implements the CharacterIterator protocol for a String.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.