java.text.spi
public abstract class NumberFormatProvider extends LocaleServiceProvider
Since: 1.6
| Constructor Summary | |
|---|---|
| protected | NumberFormatProvider() 
 Constructs a new {@link NumberFormatProvider}.
  | 
| Method Summary | |
|---|---|
| abstract NumberFormat | getCurrencyInstance(Locale locale) 
 Returns a {@link java.text.NumberFormat} instance
 for monetary values in the specified
 {@link java.util.Locale}.
 | 
| abstract NumberFormat | getIntegerInstance(Locale locale) 
 Returns a {@link java.text.NumberFormat} instance
 for integers in the specified {@link java.util.Locale}.
  | 
| abstract NumberFormat | getNumberInstance(Locale locale) 
 Returns a general-purpose {@link java.text.NumberFormat}
 instance in the specified {@link java.util.Locale}.
 | 
| abstract NumberFormat | getPercentInstance(Locale locale) 
 Returns a {@link java.text.NumberFormat} instance
 for percentage values in the specified
 {@link java.util.Locale}.
 | 
Parameters: locale the desired locale.
Returns: the localized instance for monetary values.
Throws: NullPointerException if the locale is null. IllegalArgumentException if the locale is not one returned by {@link getAvailableLocales()}
See Also: getCurrencyInstance
Parameters: locale the desired locale.
Returns: the localized instance for integers.
Throws: NullPointerException if the locale is null. IllegalArgumentException if the locale is not one returned by {@link getAvailableLocales()}
See Also: getIntegerInstance HALF_EVEN isParseIntegerOnly
Parameters: locale the desired locale.
Returns: a general-purpose localized instance.
Throws: NullPointerException if the locale is null. IllegalArgumentException if the locale is not one returned by {@link getAvailableLocales()}
See Also: getNumberInstance
Parameters: locale the desired locale.
Returns: the localized instance for percentage values.
Throws: NullPointerException if the locale is null. IllegalArgumentException if the locale is not one returned by {@link getAvailableLocales()}
See Also: getPercentInstance