|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.visualization.datasource.base.LocaleUtil
public class LocaleUtil
A utility class for locale handling.
| Method Summary | |
|---|---|
static com.ibm.icu.util.ULocale |
getDefaultLocale()
Returns the default locale. |
static java.util.Locale |
getLocaleFromLocaleString(java.lang.String s)
Converts a locale string from the RFC 3066 standard format to the Java locale format. |
static java.lang.String |
getLocalizedMessageFromBundle(java.lang.String bundleName,
java.lang.String key,
java.util.Locale locale)
Returns a localized message from the specified ResourceBundle for the given key. |
static void |
setDefaultLocale(com.ibm.icu.util.ULocale defaultLocale)
Sets the default locale. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.Locale getLocaleFromLocaleString(java.lang.String s)
s - The locale string.
public static void setDefaultLocale(com.ibm.icu.util.ULocale defaultLocale)
defaultLocale - The default locale.public static com.ibm.icu.util.ULocale getDefaultLocale()
public static java.lang.String getLocalizedMessageFromBundle(java.lang.String bundleName,
java.lang.String key,
java.util.Locale locale)
ResourceBundle for the given key.
In case the locale is null, uses the default locale.
If locale is null, the default ResourceBundle is used.
bundleName - The name of the resource bundle.key - The key of the requested string.locale - The locale.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||