|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.cm.utils.LocaleHandler
public class LocaleHandler
| Constructor Summary | |
|---|---|
LocaleHandler(String languages,
String charsets)
Constructs a new LocaleHandler language list, and charset list. |
|
| Method Summary | |
|---|---|
String |
getCharset()
Gets the chosen charset. |
static String |
getCharset(Locale loc)
Gets the preferred charset for the given locale, or null if the locale is not recognized. |
protected String |
getCharsetForLocale(Locale loc,
String charsets)
Gets the best charset for a given locale, selecting from a charset list. |
Locale |
getLocale()
Gets the chosen locale. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocaleHandler(String languages,
String charsets)
languages - the Accept-Language headercharsets - the Accept-Charset header| Method Detail |
|---|
public Locale getLocale()
public String getCharset()
protected String getCharsetForLocale(Locale loc,
String charsets)
loc - the localecharsets - a comma-separated charset list
public static String getCharset(Locale loc)
loc - the locale
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||