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 parseLocalepublic static java.lang.String toRFC4646(java.util.Locale locale)
locale - the Locale to convert to RFC 4646 formatLocaleCopyright © 2010 - 2023 Adobe. All Rights Reserved