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, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParentpublic 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 ResourceBundleResourceBundle.handleGetObject(String)public final Enumeration getKeys()
getKeys in class ResourceBundleResourceBundle.getKeys()Copyright © 2012 Oracle Corpration. All Rights Reserved.