java.lang.Object
java.util.ResourceBundle
com.sun.xml.fastinfoset.AbstractResourceBundle
- Direct Known Subclasses:
CommonResourceBundle
This class contains methods common to all *ResourceBundle classes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
-
Field Summary
FieldsFields inherited from class java.util.ResourceBundle
parent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ResourceBundle
Subclasses of this class must implement this method so that the correct resource bundle is passed to methods in this classfinal Enumeration
<String> getKeys()
Since we are changing the ResourceBundle extension point, must implement getKeys() using delegate getBundle().Implements java.util.ResourceBundle.getKeys; inherits that javadoc information.Gets 'key' from ResourceBundle and format message using 'args'.protected Object
handleGetObject
(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().static Locale
parseLocale
(String localeString) Parse a locale string, return corresponding Locale instance.Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
-
Field Details
-
LOCALE
- See Also:
-
-
Constructor Details
-
AbstractResourceBundle
protected AbstractResourceBundle()
-
-
Method Details
-
getString
Gets 'key' from ResourceBundle and format message using 'args'.- Parameters:
key
- String key for message.args
- Array of arguments for message.- Returns:
- String formatted message.
-
parseLocale
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
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 subclass. Methods in this class will use this reference.
-
handleGetObject
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 classResourceBundle
-
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 classResourceBundle
-