APIdia Launch Partner
Top Description Constructors Methods
java.text.spi

public abstract Class DecimalFormatSymbolsProvider

extends LocaleServiceProvider
Class Inheritance
Known Direct Subclasses
sun.util.locale.provider.DecimalFormatSymbolsProviderImpl, sun.util.locale.provider.SPILocaleProviderAdapter.DecimalFormatSymbolsProviderDelegate
Imports
java.text.DecimalFormatSymbols, java.util.Locale, java.util.spi.LocaleServiceProvider

An abstract class for service providers that provide instances of the DecimalFormatSymbols class.

The requested Locale may contain an extension for specifying the desired numbering system. For example, "ar-u-nu-arab" (in the BCP 47 language tag form) specifies Arabic with the Arabic-Indic digits and symbols, while "ar-u-nu-latn" specifies Arabic with the Latin digits and symbols. Refer to the Unicode Locale Data Markup Language (LDML) specification for numbering systems.

Since
1.6
See Also
Locale#forLanguageTag(String), Locale#getExtension(char)

Constructor Summary

AccessConstructor and Description
protected
DecimalFormatSymbolsProvider()

Sole constructor.

Method Summary

Modifier and TypeMethod and Description
public abstract DecimalFormatSymbols

Returns:

a DecimalFormatSymbols instance.
getInstance
(Locale
the desired locale
locale
)

Returns a new DecimalFormatSymbols instance for the specified locale.

Inherited from java.util.spi.LocaleServiceProvider:
getAvailableLocalesisSupportedLocale

Constructor Detail

DecimalFormatSymbolsProviderback to summary
protected DecimalFormatSymbolsProvider()

Sole constructor. (For invocation by subclass constructors, typically implicit.)

Method Detail

getInstanceback to summary
public abstract DecimalFormatSymbols getInstance(Locale locale)

Returns a new DecimalFormatSymbols instance for the specified locale.

Parameters
locale:Locale

the desired locale

Returns:DecimalFormatSymbols

a DecimalFormatSymbols instance.

Exceptions
NullPointerException:
if locale is null
IllegalArgumentException:
if locale isn't one of the locales returned from getAvailableLocales().
See Also
java.text.DecimalFormatSymbols#getInstance(java.util.Locale)