java.text.spi
Class CollatorProvider

java.lang.Object
  extended by java.util.spi.LocaleServiceProvider
      extended by java.text.spi.CollatorProvider

public abstract class CollatorProvider
extends LocaleServiceProvider

A CollatorProvider provides localized instances of Collator.

Since:
1.6

Constructor Summary
protected CollatorProvider()
          Constructs a new CollatorProvider.
 
Method Summary
abstract  Collator getInstance(Locale locale)
          Returns a Collator instance for the specified Locale.
 
Methods inherited from class java.util.spi.LocaleServiceProvider
getAvailableLocales
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollatorProvider

protected CollatorProvider()
Constructs a new CollatorProvider. Provided for implicit invocation by subclasses.

Method Detail

getInstance

public abstract Collator getInstance(Locale locale)
Returns a Collator instance for the specified Locale.

Parameters:
locale - the desired locale.
Returns:
the localized instance.
Throws:
NullPointerException - if the locale is null.
IllegalArgumentException - if the locale is not one returned by LocaleServiceProvider.getAvailableLocales()
See Also:
Collator.getInstance(java.util.Locale)