public class FwdCollatorProvider
extends java.text.spi.CollatorProvider
ab_CD_cp1234_fwd_basic
Here are each part explained:
Locale
c'tor;Locale
c'tor;ISO8859-1
, ISO8859-15
and CP1252
were supported;en_US_P2J
where it is
replaced by 'p2j'.basic
in 4GL, but it is not optional here. The
list of 4GL collations is CP-specific.Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.util.Locale,java.lang.String> |
collatorClasses
Mapping of locales to fully qualified collator class names
|
private static java.util.Map<java.util.Locale,java.text.Collator> |
collators
All collator implementations managed by this provider
|
Constructor and Description |
---|
FwdCollatorProvider()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Locale[] |
getAvailableLocales()
Report all locales managed by this provider.
|
java.text.Collator |
getInstance(java.util.Locale locale)
Get an instance of a collator, if this provider is responsible for the specified locale.
|
private static final java.util.Map<java.util.Locale,java.lang.String> collatorClasses
private static final java.util.Map<java.util.Locale,java.text.Collator> collators
public java.text.Collator getInstance(java.util.Locale locale)
getInstance
in class java.text.spi.CollatorProvider
locale
- A locale possibly managed by this provider.null
if the specified locale is unknown to this provider.public java.util.Locale[] getAvailableLocales()
getAvailableLocales
in class java.util.spi.LocaleServiceProvider