org.datanucleus.util
Class I18nUtils

java.lang.Object
  extended by org.datanucleus.util.I18nUtils

public final class I18nUtils
extends java.lang.Object

Utility class for internationalization. This class provides a central location to do specialized formatting in both a default and a locale specfic manner


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

Method Detail

getLocaleFromString

public static java.util.Locale getLocaleFromString(java.lang.String localeString)
Convert a string based locale into a Locale Object. Assumes the string has form "{language}_{country}_{variant}". Examples: "en", "de_DE", "_GB", "en_US_WIN", "de__POSIX", "fr_MAC"

Parameters:
localeString - The String
Returns:
the Locale


Copyright © 2010. All Rights Reserved.