java.text.spi

Class DateFormatSymbolsProvider

public abstract class DateFormatSymbolsProvider extends LocaleServiceProvider

A {@link DateFormatSymbolsProvider} provides localized instances of {@link java.text.DateFormatSymbols}.

Since: 1.6

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

Constructor Detail

DateFormatSymbolsProvider

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

Method Detail

getInstance

public abstract DateFormatSymbols getInstance(Locale locale)
Returns a {@link java.text.DateFormatSymbols} 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