com.sun.xml.fastinfoset
Class AbstractResourceBundle
java.lang.Object
java.util.ResourceBundle
com.sun.xml.fastinfoset.AbstractResourceBundle
- Direct Known Subclasses:
- CommonResourceBundle
public abstract class AbstractResourceBundle
- extends java.util.ResourceBundle
This class contains methods common to all *ResourceBundle classes
- Author:
- FastInfoset team
| Nested classes/interfaces inherited from class java.util.ResourceBundle |
java.util.ResourceBundle.Control |
|
Field Summary |
static java.lang.String |
LOCALE
|
| Fields inherited from class java.util.ResourceBundle |
parent |
|
Method Summary |
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. |
| Methods inherited from class java.util.ResourceBundle |
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOCALE
public static final java.lang.String LOCALE
- See Also:
- Constant Field Values
AbstractResourceBundle
public AbstractResourceBundle()
getString
public java.lang.String getString(java.lang.String key,
java.lang.Object[] args)
- Gets 'key' from ResourceBundle and format mesage using 'args'.
- Parameters:
key - String key for message.args - Array of arguments for message.
- Returns:
- String formatted message.
parseLocale
public static java.util.Locale parseLocale(java.lang.String localeString)
- Parse a locale string, return corresponding Locale instance.
- Parameters:
localeString - Name for the locale of interest. If null, use VM default locale.
- Returns:
- New Locale instance.
getBundle
public 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
- Returns:
- A java.util.ResourceBundle from the subsclass. Methods in this class
will use this reference.
handleGetObject
protected java.lang.Object handleGetObject(java.lang.String key)
- Since we are changing the ResourceBundle extension point, must
implement handleGetObject() using delegate getBundle(). Uses
getObject() call to work around protected access to
ResourceBundle.handleGetObject(). Happily, this means parent tree
of delegate bundle is searched for a match.
Implements java.util.ResourceBundle.handleGetObject; inherits that
javadoc information.
- Specified by:
handleGetObject in class java.util.ResourceBundle
- See Also:
ResourceBundle.handleGetObject(String)
getKeys
public final java.util.Enumeration getKeys()
- Since we are changing the ResourceBundle extension point, must
implement getKeys() using delegate getBundle().
Implements java.util.ResourceBundle.getKeys; inherits that javadoc
information.
- Specified by:
getKeys in class java.util.ResourceBundle
- See Also:
ResourceBundle.getKeys()
Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.