KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > text > spi > DateFormatSymbolsProvider


1 /*
2  * @(#)DateFormatSymbolsProvider.java 1.2 05/11/17
3  *
4  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.text.spi;
9
10 import java.text.DateFormatSymbols JavaDoc;
11 import java.util.Locale JavaDoc;
12 import java.util.spi.LocaleServiceProvider;
13
14 /**
15  * An abstract class for service providers that
16  * provide instances of the
17  * {@link java.text.DateFormatSymbols DateFormatSymbols} class.
18  *
19  * @since 1.6
20  * @version @(#)DateFormatSymbolsProvider.java 1.2 05/11/17
21  */

22 public abstract class DateFormatSymbolsProvider extends LocaleServiceProvider {
23
24     /**
25      * Sole constructor. (For invocation by subclass constructors, typically
26      * implicit.)
27      */

28     protected DateFormatSymbolsProvider() {
29     }
30
31     /**
32      * Returns a new <code>DateFormatSymbols</code> instance for the
33      * specified locale.
34      *
35      * @param locale the desired locale
36      * @exception NullPointerException if <code>locale</code> is null
37      * @exception IllegalArgumentException if <code>locale</code> isn't
38      * one of the locales returned from
39      * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales()
40      * getAvailableLocales()}.
41      * @return a <code>DateFormatSymbols</code> instance.
42      * @see java.text.DateFormatSymbols#getInstance(java.util.Locale)
43      */

44     public abstract DateFormatSymbols JavaDoc getInstance(Locale JavaDoc locale);
45 }
46
Popular Tags