Modifier and Type | Method and Description |
---|---|
static CharacterSet[] |
getAllCharacterSets()
Returns all the character sets.
|
static Language[] |
getAllLanguages()
Returns all languages.
|
static Collection |
getAllLocales()
Returns all Locales.
|
static Language |
getBestLanguage(String localeStr)
Returns the best Language object match given the
locale string, such as en-US, en, de-GR
If no match found or locale string is null,
it defaults to English.
|
static CharacterSet[] |
getPrimaryCharacterSets()
Returns the primary character sets.
|
static Language[] |
getPrimaryLanguages()
Returns the primary languages.
|
static boolean |
isValidCharacterSet(String code)
Determines whether the given character set code is a valid IANA code.
|
static boolean |
isValidLanguage(String language)
Determines whether the given language is a valid name
using the Oracle naming convention.
|
public static CharacterSet[] getAllCharacterSets()
public static CharacterSet[] getPrimaryCharacterSets()
public static Language[] getAllLanguages()
public static Language[] getPrimaryLanguages()
public static Collection getAllLocales()
public static boolean isValidLanguage(String language)
language
- the language name.language
is a valid language name.public static boolean isValidCharacterSet(String code)
code
- the character set code.code
is a valid IANA code.public static Language getBestLanguage(String localeStr)
localeStr
- language/country codeCopyright © 2023. All rights reserved.