public class Language
extends java.lang.Object
Constructor and Description |
---|
Language(java.util.Locale locale) |
Language(java.util.Locale locale,
java.lang.String language,
java.lang.String country) |
Language(java.lang.String code) |
Language(java.lang.String language,
java.lang.String country) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCountryCode() |
java.lang.String |
getLanguageCode() |
java.util.Locale |
getLocale() |
static java.util.Locale |
getLocale(java.lang.String code)
Parses a language code such as "de", "de_CH", "de_DE_EURO" or "de-CH" and
returns the proper
Locale object. |
java.lang.String |
toString() |
public Language(java.util.Locale locale)
public Language(java.lang.String code)
public Language(java.util.Locale locale, java.lang.String language, java.lang.String country)
public Language(java.lang.String language, java.lang.String country)
public java.util.Locale getLocale()
public java.lang.String getLanguageCode()
public java.lang.String getCountryCode()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.util.Locale getLocale(java.lang.String code)
Locale
object.code
- language codeCopyright © 2010 - 2020 Adobe. All Rights Reserved