public abstract class AbstractResourceBundle extends ResourceBundle
ResourceBundle.Control
Modifier and Type | Field and Description |
---|---|
static String |
LOCALE |
parent
Constructor and Description |
---|
AbstractResourceBundle() |
Modifier and Type | Method and Description |
---|---|
abstract ResourceBundle |
getBundle()
Subclasses of this class must implement this method so that the
correct resource bundle is passed to methods in this class
|
Enumeration |
getKeys()
Since we are changing the ResourceBundle extension point, must
implement getKeys() using delegate getBundle().
|
String |
getString(String key,
Object[] args)
Gets 'key' from ResourceBundle and format mesage using 'args'.
|
protected Object |
handleGetObject(String key)
Since we are changing the ResourceBundle extension point, must
implement handleGetObject() using delegate getBundle().
|
static Locale |
parseLocale(String localeString)
Parse a locale string, return corresponding Locale instance.
|
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
public static final String LOCALE
public String getString(String key, Object[] args)
key
- String key for message.args
- Array of arguments for message.public static Locale parseLocale(String localeString)
localeString
- Name for the locale of interest. If null, use VM default locale.public abstract ResourceBundle getBundle()
protected Object handleGetObject(String key)
handleGetObject
in class ResourceBundle
ResourceBundle.handleGetObject(String)
public final Enumeration getKeys()
getKeys
in class ResourceBundle
ResourceBundle.getKeys()
Copyright © 2021 Oracle Corpration. All rights reserved.