public abstract class LocaleUtil
extends java.lang.Object
Constructor and Description |
---|
LocaleUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.Locale |
parseLocale(java.lang.String text)
Parses the given text to create its corresponding
Locale . |
static java.lang.String |
toRFC4646(java.util.Locale locale)
Converts the given locale to RFC 4646 format.
|
public static java.util.Locale parseLocale(java.lang.String text)
Locale
. This
method supports "-" and "_" as locale element separator.text
- string to parseLocale
public static java.lang.String toRFC4646(java.util.Locale locale)
locale
- the Locale
to convert to RFC 4646 formatLocale
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"