| Home >> All >> java >> [ text Javadoc ] |
java.text: Javadoc index of package java.text.
Package Samples:
java.text
Classes:
RuleBasedCollator: This class is a concrete subclass of Collator suitable for string collation in a wide variety of languages. An instance of this class is normally returned by the getInstance method of Collator with rules predefined for the requested locale. However, an instance of this class can be created manually with any desired rules. Rules take the form of a String with the following syntax Modifier: '@' Relation: '<' | ';' | ',' | '=' : <text> Reset: '&' : <text> The modifier character indicates that accents sort backward as is the case with French. The modifier applies to all rules after ...
ChoiceFormat: This class allows a format to be specified based on a range of numbers. To use this class, first specify two lists of formats and range terminators. These lists must be arrays of equal length. The format of index i will be selected for value X if terminator[i] <= X < limit[i + 1] . If the value X is not included in any range, then either the first or last format will be used depending on whether the value X falls outside the range. This sounds complicated, but that is because I did a poor job of explaining it. Consider the following example: terminators = { 1, ChoiceFormat.nextDouble(1) } ...
Collator: This class is the abstract superclass of classes which perform locale dependent String comparisons. A caller requests an instance of Collator for a particular locale using the getInstance() static method in this class. That method will return a locale specific subclass of Collator which can be used to perform String comparisons for that locale. If a subclass of Collator cannot be located for a particular locale, a default instance for the current locale will be returned. In addition to setting the correct locale, there are two additional settings that can be adjusted to affect String comparisons: ...
CollationKey: This class represents a pre-computed series of bits representing a String for under a particular Collator . This value may be compared bitwise against another CollationKey representing a different String under the same Collator in a manner than is usually more efficient than using the raw Collator compare methods. There is overhead associated with calculating this value, so it is generally not advisable to compute CollationKey 's unless multiple comparisons against a String will be done. (For example, in a sort routine). This class cannot be instantiated directly. Instead, a CollationKey is created ...
Format: This class is the abstract superclass of classes that format and parse data to/from Strings . It is guaranteed that any String produced by a concrete subclass of Format will be parseable by that same subclass. In addition to implementing the abstract methods in this class, subclasses should provide static factory methods of the form getInstance() and getInstance(Locale) if the subclass loads different formatting/parsing schemes based on locale. These subclasses should also implement a static method called getAvailableLocales() which returns an array of available locales in the current runtime environment ...
NumberFormat: This is the abstract superclass of all classes which format and parse numeric values such as decimal numbers, integers, currency values, and percentages. These classes perform their parsing and formatting in a locale specific manner, accounting for such items as differing currency symbols and thousands separators. To create an instance of a concrete subclass of NumberFormat , do not call a class constructor directly. Instead, use one of the static factory methods in this class such as getCurrencyInstance .
BreakIterator: This class iterates over text elements such as words, lines, sentences, and characters. It can only iterate over one of these text elements at a time. An instance of this class configured for the desired iteration type is created by calling one of the static factory methods, not by directly calling a constructor. The standard iterators created by the factory methods in this class will be valid upon creation. That is, their methods will not cause exceptions if called before you call setText().
AttributedCharacterIterator: This interface extends the CharacterIterator interface in order to support iteration over character attributes as well as over the characters themselves. In addition to attributes of specific characters, this interface supports the concept of the "attribute run", which is an attribute that is defined for a particular value across an entire range of characters or which is undefined over a range of characters.
CollationElementIterator: This class walks through the character collation elements of a String as defined by the collation rules in an instance of RuleBasedCollator . There is no public constructor for this class. An instance is created by calling the getCollationElementIterator method on RuleBasedCollator .
CharacterIterator: This interface defines a mechanism for iterating over a range of characters. For a given range of text, a beginning and ending index, as well as a current index are defined. These values can be queried by the methods in this interface. Additionally, various methods allow the index to be set.
StringCharacterIterator: This class iterates over a range of characters in a String . For a given range of text, a beginning and ending index, as well as a current index are defined. These values can be queried by the methods in this interface. Additionally, various methods allow the index to be set.
FieldPosition: This class is used by the java.text formatting classes to track field positions. A field position is defined by an identifier value and begin and end index positions. The formatting classes in java.text typically define constant values for the field identifiers.
DecimalFormatSymbols: This class is a container for the symbols used by DecimalFormat to format numbers and currency for a particular locale. These are normally handled automatically, but an application can override values as desired using this class.
Annotation: This class is used as a wrapper for a text attribute object. Annotation objects are associated with a specific range of text. Changing either the text range or the underlying text invalidates the object.
AttributedString: This class models a String with attributes over various subranges of the string. It allows applications to access this information via the AttributedCharacterIterator interface.
Bidi: Bidirectional Algorithm implementation. The full algorithm is Unicode Standard Annex #9: The Bidirectional Algorithm .
DateFormatSymbols: This class acts as container for locale specific date/time formatting information such as the days of the week and the months of the year.
SimpleDateFormat: SimpleDateFormat provides convenient methods for parsing and formatting dates using Gregorian calendars (see java.util.GregorianCalendar).
AttributedStringIterator: This class implements the AttributedCharacterIterator interface. It is used by AttributedString.getIterator().
ParsePosition: This class is used to keep track of the current position during parsing operations.
ParseException: This exception is thrown when an unexpected error occurs during parsing.
| Home | Contact Us | Privacy Policy | Terms of Service |