Servlets.com

Home

What's New?

com.oreilly.servlet

Servlet Polls

Mailing Lists

List Archives

Servlet Engines

Servlet ISPs

Servlet Tools

Documentation

Online Articles

The Soapbox

"Java Servlet
Programming,
Second Edition"

"Java Enterprise
Best Practices"

Speaking & Slides

About Jason

XQuery Affiliate

Advertising Info

LocaleToCharsetMap

com.oreilly.servlet
Class LocaleToCharsetMap


java.lang.Object
  |
  +--com.oreilly.servlet.LocaleToCharsetMap

public class LocaleToCharsetMap
extends java.lang.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

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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleToCharsetMap

public LocaleToCharsetMap()
Method Detail

getCharset

public 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.

Parameters:
loc - the locale
Returns:
the preferred charset

 


Home   com.oreilly.servlet   Polls   Lists   Archives
Engines   ISPs   Tools   Docs   Articles   Soapbox   Book

Copyright © 1999-2005 Jason Hunter
Privacy Policy

webmaster@servlets.com
Last updated: October 30, 2006