net.sf.cantina.util
Class Localizer

java.lang.Object
  extended bynet.sf.cantina.util.Localizer

public abstract class Localizer
extends java.lang.Object

This class provides the reverse toString() operation for a Locale object. Given a String obtained using locale.toString() reconstructs the locale object by splitting the string in two at the place of the underscore.

Author:
Stephane JAIS

Field Summary
static org.apache.log4j.Logger logger
           
 
Constructor Summary
Localizer()
           
 
Method Summary
static java.util.Locale parseLocaleString(java.lang.String localeString)
          Given a string representing a locale, will try to get the most relevant locale in the system's supported locales.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.apache.log4j.Logger logger
Constructor Detail

Localizer

public Localizer()
Method Detail

parseLocaleString

public static java.util.Locale parseLocaleString(java.lang.String localeString)
Given a string representing a locale, will try to get the most relevant locale in the system's supported locales.

Parameters:
localeString - a string like 'en_US' or 'fr_FR'


Copyright © 2004 Cantina. All Rights Reserved.