Package org.apache.myfaces.util
Class LocaleUtils
- java.lang.Object
-
- org.apache.myfaces.util.LocaleUtils
-
public final class LocaleUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Locale
converterTagLocaleFromString(String name)
Convert locale string used by converter tags to locale.static Locale
toLocale(String localeString)
Converts a locale string toLocale
class.
-
-
-
Method Detail
-
toLocale
public static Locale toLocale(String localeString)
Converts a locale string toLocale
class. Accepts both '_' and '-' as separators for locale components.- Parameters:
localeString
- string representation of a locale- Returns:
- Locale instance, compatible with the string representation
-
-