LocaleNameProvider class
for the JRE LocaleProviderAdapter.
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final LocaleProviderAdapter. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | getAvailableLanguageTags()
Implements sun. Returns a set of available language tags of a LocaleServiceProvider. |
| public Locale[] | Returns: An array of all locales for which this locale service provider can provide localized objects or names.Implements abstract java. Returns an array of all locales for which this locale service provider can provide localized objects or names. |
| public String | Returns: the name of the given country code for the specified locale, or null if it's not available.the ISO 3166 country code string in the form of two
upper-case letters between 'A' (U+0041) and 'Z' (U+005A) ctry, Locale the desired locale locale)Implements abstract java. Returns a localized name for the given ISO 3166 country code and the given locale that is appropriate for display to the user. |
| public String | Returns: the name of the given language code for the specified locale, or null if it's not available.the ISO 639 language code string in the form of two
lower-case letters between 'a' (U+0061) and 'z' (U+007A) lang, Locale the desired locale locale)Implements abstract java. Returns a localized name for the given ISO 639 language code and the given locale that is appropriate for display to the user. |
| public String | Returns: the name of the given script code for the specified locale, or null if it's not available.the four letter script code string in the form of title-case
letters (the first letter is upper-case character between 'A' (U+0041) and
'Z' (U+005A) followed by three lower-case character between 'a' (U+0061)
and 'z' (U+007A)). scriptCode, Locale the desired locale locale)Overrides java. Returns a localized name for the given IETF BCP47 script code and the given locale that is appropriate for display to the user. |
| private String | |
| public String | getDisplayUnicodeExtensionKey(String key, Locale locale)
Overrides java. Returns a localized name for the given Unicode extension key, and the given locale that is appropriate for display to the user. |
| public String | getDisplayUnicodeExtensionType(String extType, String key, Locale locale)
Overrides java. Returns a localized name for the given Unicode extension type, and the given locale that is appropriate for display to the user. |
| public String | Returns: the name of the given variant string for the specified locale, or null if it's not available.the variant string vrnt, Locale the desired locale locale)Implements abstract java. Returns a localized name for the given variant code and the given locale that is appropriate for display to the user. |
| public boolean | isSupportedLocale(Locale locale)
Overrides java. Returns |
| langtags | back to summary |
|---|---|
| private final Set<String> langtags | |
| type | back to summary |
|---|---|
| private final LocaleProviderAdapter. | |
| LocaleNameProviderImpl | back to summary |
|---|---|
| public LocaleNameProviderImpl(LocaleProviderAdapter. | |
| getAvailableLanguageTags | back to summary |
|---|---|
| public Set Implements sun. Doc from sun. Returns a set of available language tags of a LocaleServiceProvider.
Note that the returned set doesn't contain the language tag for
| |
| getAvailableLocales | back to summary |
|---|---|
| public Locale[] getAvailableLocales() Implements abstract java. Returns an array of all locales for which this locale service provider can provide localized objects or names. | |
| getDisplayCountry | back to summary |
|---|---|
| public String getDisplayCountry(String ctry, Locale locale) Implements abstract java. Returns a localized name for the given ISO 3166 country code and the
given locale that is appropriate for display to the user.
For example, if
| |
| getDisplayLanguage | back to summary |
|---|---|
| public String getDisplayLanguage(String lang, Locale locale) Implements abstract java. Returns a localized name for the given ISO 639 language code and the
given locale that is appropriate for display to the user.
For example, if
| |
| getDisplayScript | back to summary |
|---|---|
| public String getDisplayScript(String scriptCode, Locale locale) Overrides java. Returns a localized name for the given
IETF BCP47 script code and the given locale that is appropriate for
display to the user.
For example, if
| |
| getDisplayString | back to summary |
|---|---|
| private String getDisplayString(String key, Locale locale) | |
| getDisplayUnicodeExtensionKey | back to summary |
|---|---|
| public String getDisplayUnicodeExtensionKey(String key, Locale locale) Overrides java. Doc from java. Returns a localized name for the given
Unicode extension key,
and the given locale that is appropriate for display to the user.
If the name returned cannot be localized according to
| |
| getDisplayUnicodeExtensionType | back to summary |
|---|---|
| public String getDisplayUnicodeExtensionType(String extType, String key, Locale locale) Overrides java. Doc from java. Returns a localized name for the given
Unicode extension type,
and the given locale that is appropriate for display to the user.
If the name returned cannot be localized according to
| |
| getDisplayVariant | back to summary |
|---|---|
| public String getDisplayVariant(String vrnt, Locale locale) Implements abstract java. Returns a localized name for the given variant code and the given locale that
is appropriate for display to the user.
If the name returned cannot be localized according to
| |
| isSupportedLocale | back to summary |
|---|---|
| public boolean isSupportedLocale(Locale locale) Overrides java. Doc from java. Returns The default implementation returns
| |