java.text.spi
public abstract class NumberFormatProvider extends LocaleServiceProvider
Since: 1.6
Constructor Summary | |
---|---|
protected | NumberFormatProvider()
Constructs a new NumberFormatProvider.
|
Method Summary | |
---|---|
abstract NumberFormat | getCurrencyInstance(Locale locale)
Returns a java.text.NumberFormat instance
for monetary values in the specified
java.util.Locale.
|
abstract NumberFormat | getIntegerInstance(Locale locale)
Returns a java.text.NumberFormat instance
for integers in the specified java.util.Locale.
|
abstract NumberFormat | getNumberInstance(Locale locale)
Returns a general-purpose java.text.NumberFormat
instance in the specified java.util.Locale.
|
abstract NumberFormat | getPercentInstance(Locale locale)
Returns a java.text.NumberFormat instance
for percentage values in the specified
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
getAvailableLocales()
See Also: java.text.NumberFormat#getCurrencyInstance(java.util.Locale)
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
getAvailableLocales()
See Also: java.text.NumberFormat#getIntegerInstance(java.util.Locale) java.math.RoundingMode#HALF_EVEN java.text.NumberFormat#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
getAvailableLocales()
See Also: java.text.NumberFormat#getNumberInstance(java.util.Locale)
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
getAvailableLocales()
See Also: java.text.NumberFormat#getPercentInstance(java.util.Locale)