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.
- 版本:
- 1.0, 98/09/18
- 作者:
- Jason Hunter, Copyright © 1998
- 另请参见:
LocaleNegotiator
|
方法摘要 |
static String |
getCharset(Locale loc)
Gets the preferred charset for the given locale, or null if the locale
is not recognized. |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
- 参数:
loc - the locale
- 返回:
- the preferred charset
Copyright © 2013. All Rights Reserved.