public final class BundleUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getMessage(java.lang.String bundleName,
java.util.Locale locale,
java.lang.String key,
java.lang.Object[] params)
Get a localized message from the bundle.
|
static java.lang.String |
getMessage(java.lang.String bundleName,
java.util.Locale locale,
java.lang.String key,
java.lang.String defaultMsg)
Get a localized message from a bundle.
|
static java.lang.String |
getMessage(java.lang.String bundleName,
java.util.Locale locale,
java.lang.String key,
java.lang.String defaultMsg,
java.lang.Object[] params)
Get a localized message from the bundle.
|
static java.lang.String |
getMessage(java.lang.String bundleName,
java.lang.String key,
java.lang.Object[] params)
Get a message from the bundle using the default locale.
|
static java.lang.String |
getString(java.lang.String bundleName,
java.lang.String key)
Get a string from a bundle, using the default locale.
|
static java.lang.String |
getString(java.lang.String bundleName,
java.lang.String key,
java.lang.String defaultMsg)
Get a string from a bundle, using the default locale.
|
public static java.lang.String getString(java.lang.String bundleName, java.lang.String key)
bundleName
- the bundle namekey
- the key to look uppublic static java.lang.String getString(java.lang.String bundleName, java.lang.String key, java.lang.String defaultMsg)
bundleName
- the bundle namekey
- the key to look updefaultMsg
- the default value, or nullpublic static java.lang.String getMessage(java.lang.String bundleName, java.util.Locale locale, java.lang.String key, java.lang.String defaultMsg)
bundleName
- the name of the resource bundlelocale
- the localekey
- the keydefaultMsg
- the default messagepublic static java.lang.String getMessage(java.lang.String bundleName, java.lang.String key, java.lang.Object[] params)
bundleName
- the name of the resource bundlekey
- the keyparams
- parameters for the messagepublic static java.lang.String getMessage(java.lang.String bundleName, java.util.Locale locale, java.lang.String key, java.lang.String defaultMsg, java.lang.Object[] params)
bundleName
- the name of the resource bundlelocale
- the localekey
- the keydefaultMsg
- the default messageparams
- parameters for the messagepublic static java.lang.String getMessage(java.lang.String bundleName, java.util.Locale locale, java.lang.String key, java.lang.Object[] params)
bundleName
- the name of the resource bundlelocale
- the localekey
- the keyparams
- parameters for the message