org.niggle.templates
Class LocaleUtil

java.lang.Object
  |
  +--org.niggle.templates.LocaleUtil

public abstract class LocaleUtil
extends java.lang.Object

An abstract base class for objects that wrap another object for presentation purposes. It is also a holder for some static utility routines.


Constructor Summary
LocaleUtil()
           
 
Method Summary
static java.lang.String getCharset(java.util.Locale loc)
          Gets the preferred charset for the given locale, or null if the locale is not recognized.
static java.lang.String[] getFilenames(java.lang.String filename, java.util.Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleUtil

public LocaleUtil()
Method Detail

getFilenames

public static java.lang.String[] getFilenames(java.lang.String filename,
                                              java.util.Locale locale)

getCharset

public static java.lang.String getCharset(java.util.Locale loc)
Gets the preferred charset for the given locale, or null if the locale is not recognized.

Parameters:
loc - the locale
Returns:
the preferred charset