public class I18NResourceBundle extends ResourceBundle
ResourceBundle.Control
parent
Modifier and Type | Method and Description |
---|---|
static I18NResourceBundle |
getBundleForClass(Class c)
Get a package-specific resource bundle for a class containing localization data.
|
Enumeration |
getKeys()
A required internal method for ResourceBundle.
|
String |
getName()
Returns the name of this bundle (useful for methods using bundle name instead of
instance, such as
Logger creation, |
String |
getOptionalString(String key)
Get an entry from the bundle, returning null if it is not found.
|
String |
getString(String key,
Object... args)
Get an entry from the resource bundle.
|
String |
getString(String key,
Object arg)
Get an entry from the resource bundle.
|
protected Object |
handleGetObject(String key)
A required internal method for ResourceBundle.
|
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
public static I18NResourceBundle getBundleForClass(Class c)
c
- the class for which to obtain the resource bundlepublic String getString(String key, Object arg)
key
- the name of the entry to be returnedarg
- an argument to be formatted into the result using
MessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
public String getString(String key, Object... args)
key
- the name of the entry to be returnedargs
- an array of arguments to be formatted into the result using
MessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
public String getOptionalString(String key)
key
- the name of the entry to be returnedprotected Object handleGetObject(String key) throws MissingResourceException
handleGetObject
in class ResourceBundle
MissingResourceException
public Enumeration getKeys()
getKeys
in class ResourceBundle
public String getName()
Logger
creation,Copyright © 2021. All Rights Reserved.