org.wings.util
Class LocaleCharSet

java.lang.Object
  extended by org.wings.util.LocaleCharSet

public class LocaleCharSet
extends Object

Map Locale to html/iso character set via org/wings/util/charset.properties.

Author:
Andre Lison

Field Summary
static String DEFAULT_ENCODING
          The default character encoding "UTF-8".
 
Constructor Summary
protected LocaleCharSet()
           
 
Method Summary
 String getCharSet(Locale aLocale)
          Try to find a matching character set for this locale.
static LocaleCharSet getInstance()
          Get a instance of LocaleCharSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ENCODING

public static final String DEFAULT_ENCODING
The default character encoding "UTF-8".

See Also:
Constant Field Values
Constructor Detail

LocaleCharSet

protected LocaleCharSet()
Method Detail

getInstance

public static LocaleCharSet getInstance()
Get a instance of LocaleCharSet.

Returns:
Instance of LocaleCharset

getCharSet

public String getCharSet(Locale aLocale)
Try to find a matching character set for this locale.

Parameters:
aLocale - The Locale to retrieve the default charset for.
Returns:
if found the charset, DEFAULT_ENCODING otherwise


wingS Swings ;-)