All Packages Class Hierarchy This Package Previous Next Index
Class com.oreilly.servlet.LocaleToCharsetMap
java.lang.Object
|
+----com.oreilly.servlet.LocaleToCharsetMap
- public class LocaleToCharsetMap
- extends Object
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.
- Version:
- 1.0, 98/09/18
- Author:
- Jason Hunter, Copyright © 1998
- See Also:
- LocaleNegotiator
-
LocaleToCharsetMap()
-
-
getCharset(Locale)
- Gets the preferred charset for the given locale, or null if the locale
is not recognized.
LocaleToCharsetMap
public LocaleToCharsetMap()
getCharset
public static String getCharset(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
All Packages Class Hierarchy This Package Previous Next Index