FileDocCategorySizeDatePackage
CollatorProvider.javaAPI DocJava SE 6 API1381Tue Jun 10 00:25:52 BST 2008java.text.spi

CollatorProvider

public abstract class CollatorProvider extends LocaleServiceProvider
An abstract class for service providers that provide concrete implementations of the {@link java.text.Collator Collator} class.
since
1.6
version
@(#)CollatorProvider.java 1.2 05/11/17

Fields Summary
Constructors Summary
protected CollatorProvider()
Sole constructor. (For invocation by subclass constructors, typically implicit.)

    
Methods Summary
public abstract java.text.CollatorgetInstance(java.util.Locale locale)
Returns a new Collator instance for the specified locale.

param
locale the desired locale.
return
the Collator for the desired locale.
exception
NullPointerException if locale is null
exception
IllegalArgumentException if locale isn't one of the locales returned from {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() getAvailableLocales()}.
see
java.text.Collator#getInstance(java.util.Locale)