org.apache.myfaces.util
Class LocaleUtils

java.lang.Object
  extended byorg.apache.myfaces.util.LocaleUtils

public class LocaleUtils
extends java.lang.Object

Version:
$Revision$ $Date$ $Log$ Revision 1.2 2004/10/13 11:51:01 matze renamed packages to org.apache Revision 1.1 2004/08/23 05:13:39 dave0000 Externalize String-to-Locale conversion
Author:
Anton Koinov (latest modification by $Author$)

Method Summary
static java.util.Locale toLocale(java.lang.String localeString)
          Converts a locale string to Locale class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toLocale

public static java.util.Locale toLocale(java.lang.String localeString)
Converts a locale string to Locale class. Accepts both '_' and '-' as separators for locale components.

Parameters:
localeString - string representation of a locale
Returns:
Locale instance, compatible with the string representation