java.text.spi

Class DecimalFormatSymbolsProvider

public abstract class DecimalFormatSymbolsProvider extends LocaleServiceProvider

A {@link DecimalFormatSymbolsProvider} provides localized instances of {@link java.text.DecimalFormatSymbols}.

Since: 1.6

Constructor Summary
protected DecimalFormatSymbolsProvider()
Constructs a new {@link DecimalFormatSymbolsProvider}.
Method Summary
abstract DecimalFormatSymbolsgetInstance(Locale locale)
Returns a {@link java.text.DecimalFormatSymbols} instance for the specified {@link java.util.Locale}.

Constructor Detail

DecimalFormatSymbolsProvider

protected DecimalFormatSymbolsProvider()
Constructs a new {@link DecimalFormatSymbolsProvider}. Provided for implicit invocation by subclasses.

Method Detail

getInstance

public abstract DecimalFormatSymbols getInstance(Locale locale)
Returns a {@link java.text.DecimalFormatSymbols} instance for the specified {@link java.util.Locale}.

Parameters: locale the locale to express the symbols in.

Returns: the localized instance.

Throws: NullPointerException if the locale is null. IllegalArgumentException if the locale is not one returned by {@link getAvailableLocales()}

See Also: getInstance