Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.httpclient
Class URI.LocaleToCharsetMap

    java.lang.Object
      org.apache.commons.httpclient.URI.LocaleToCharsetMap

Enclosing class:
  URI

    public static class URI.LocaleToCharsetMap

extends Object

A mapping to determine the (somewhat arbitrarily) preferred charset for a given locale. Supports all locales recognized in JDK 1.1.

The distribution of this class is Servlets.com. It was originally written by Jason Hunter [jhunter at acm.org] and used by with permission.

Constructor Summary
`URI.LocaleToCharsetMap()`

Method Summary
`static String` | `getCharset(Locale locale)` Get the preferred charset for the given locale.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### URI.LocaleToCharsetMap

    public URI.LocaleToCharsetMap()

Method Detail

### getCharset

    public static String getCharset(Locale locale)

  Get the preferred charset for the given locale.

  Parameters:
    `locale` - the locale
  Returns:
    the preferred charset or null if the locale is not recognized.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.