java.text.spi

Class CollatorProvider

public abstract class CollatorProvider extends LocaleServiceProvider

A CollatorProvider provides localized instances of java.text.Collator.

Since: 1.6

Constructor Summary
protected CollatorProvider()
Constructs a new CollatorProvider.
Method Summary
abstract CollatorgetInstance(Locale locale)
Returns a java.text.Collator instance for the specified java.util.Locale.

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 java.text.Collator instance for the specified java.util.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 getAvailableLocales()

See Also: java.text.Collator#getInstance(java.util.Locale)