net.sf.jportlet.util
Class LocaleHelper

java.lang.Object
  |
  +--net.sf.jportlet.util.LocaleHelper

public class LocaleHelper
extends java.lang.Object

Author:
Herve Tchepannou

Constructor Summary
LocaleHelper()
           
 
Method Summary
static java.util.Locale getLocale(java.lang.String value, java.util.Locale defaultLocale)
          Return a locale by its string value or the default locale if the value if unknown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleHelper

public LocaleHelper()
Method Detail

getLocale

public static java.util.Locale getLocale(java.lang.String value,
                                         java.util.Locale defaultLocale)
Return a locale by its string value or the default locale if the value if unknown

Parameters:
value - String value of the locale
defaultLocale - Locale to return if the value is unknown
Returns:
Locale


Copyright © 2002 Herve Tchepannou. All Rights Reserved.