public abstract class

DateFormatSymbolsProvider

extends LocaleServiceProvider
java.lang.Object
   ↳ java.util.spi.LocaleServiceProvider
     ↳ java.text.spi.DateFormatSymbolsProvider

Class Overview

An abstract class for service providers that provide instances of the DateFormatSymbols class.

Summary

Protected Constructors
DateFormatSymbolsProvider()
Sole constructor.
Public Methods
abstract DateFormatSymbols getInstance(Locale locale)
Returns a new DateFormatSymbols instance for the specified locale.
[Expand]
Inherited Methods
From class java.util.spi.LocaleServiceProvider
From class java.lang.Object

Protected Constructors

protected DateFormatSymbolsProvider ()

Sole constructor. (For invocation by subclass constructors, typically implicit.)

Public Methods

public abstract DateFormatSymbols getInstance (Locale locale)

Returns a new DateFormatSymbols instance for the specified locale.

Parameters
locale the desired locale
Returns
  • a DateFormatSymbols instance.
Throws
NullPointerException if locale is null
IllegalArgumentException if locale isn't one of the locales returned from getAvailableLocales().