Package java.text.spi
Class DecimalFormatSymbolsProvider
java.lang.Object
java.util.spi.LocaleServiceProvider
java.text.spi.DecimalFormatSymbolsProvider
public abstract class DecimalFormatSymbolsProvider extends LocaleServiceProvider
This abstract class should be extended by service providers that provide
instances of
DecimalFormatSymbols.
Note that Android does not support user-supplied locale service providers.
- Since:
- 1.6
-
Constructor Summary
Constructors Modifier Constructor Description protectedDecimalFormatSymbolsProvider()Default constructor, for use by subclasses. -
Method Summary
Modifier and Type Method Description abstract DecimalFormatSymbolsgetInstance(Locale locale)Returns an instance ofDecimalFormatSymbolsfor the given locale.Methods inherited from class java.util.spi.LocaleServiceProvider
getAvailableLocales
-
Constructor Details
-
DecimalFormatSymbolsProvider
protected DecimalFormatSymbolsProvider()Default constructor, for use by subclasses.
-
-
Method Details
-
getInstance
Returns an instance ofDecimalFormatSymbolsfor the given locale.- Parameters:
locale- the locale- Returns:
- an instance of
DecimalFormatSymbols - Throws:
NullPointerException- iflocale == nullIllegalArgumentException- if locale isn't one of the locales returned from getAvailableLocales().
-