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