|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oreilly.servlet.LocaleToCharsetMap
public class LocaleToCharsetMap
A mapping to determine the (somewhat arbitrarily) preferred charset for a given locale. Supports all locales recognized in JDK 1.1. This class is used by the LocaleNegotiator.
LocaleNegotiator
Constructor Summary | |
---|---|
LocaleToCharsetMap()
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocaleToCharsetMap()
Method Detail |
---|
public static java.lang.String getCharset(java.util.Locale loc)
loc
- the locale
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |