public class MapLanguageToBundle extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CHARSET |
static String |
DEFAULT_CLIENT_CHARSET |
static String |
DEFAULT_JAVA_CHARSET |
| Constructor and Description |
|---|
MapLanguageToBundle(String bundleName,
String languages,
String charsets)
Constructs a new
MapLanguageToBundle object for the given bundle name,
language list, and charset list. |
| Modifier and Type | Method and Description |
|---|---|
ResourceBundle |
getBundle()
Gets the resource bundle for the locale.
|
String |
getCharset()
Gets the character set.
|
String |
getCharset(Locale locale)
Gets the character set based on the WebKit locale.
|
static String |
getCharset(Locale locale,
String charsets) |
Locale |
getLocale()
Gets the resource bundle for the locale.
|
public static final String DEFAULT_CHARSET
public static final String DEFAULT_CLIENT_CHARSET
public static final String DEFAULT_JAVA_CHARSET
public MapLanguageToBundle(String bundleName, String languages, String charsets)
MapLanguageToBundle object for the given bundle name,
language list, and charset list.bundleName - the resource bundle namelanguages - the Accept-Language headercharsets - the Accept-Charset headerpublic Locale getLocale()
public String getCharset()
public String getCharset(Locale locale)
String with the
locale name.public ResourceBundle getBundle()
Copyright © 2003, 2023, Oracle and/or its affiliates.