Top Description Fields Constructors Methods
com.sun.xml.fastinfoset

public abstract Class AbstractResourceBundle

extends ResourceBundle
Class Inheritance
Known Direct Subclasses
com.sun.xml.fastinfoset.CommonResourceBundle
Imports
java.text.MessageFormat, java.util.Enumeration, .Locale, .ResourceBundle

This class contains methods common to all *ResourceBundle classes
Author
FastInfoset team

Field Summary

Modifier and TypeField and Description
public static final String
Inherited from java.util.ResourceBundle:
parent

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public abstract ResourceBundle

Returns:

A java.util.ResourceBundle from the subclass. Methods in this class will use this reference.
getBundle
()

Subclasses of this class must implement this method so that the correct resource bundle is passed to methods in this class

public final Enumeration<String>
getKeys()

Implements abstract java.util.ResourceBundle.getKeys.

Since we are changing the ResourceBundle extension point, must implement getKeys() using delegate getBundle().Implements java.util.ResourceBundle.getKeys; inherits that javadoc information.

public String

Returns:

String formatted message.
getString
(String
String key for message.
key
,
Object[]
Array of arguments for message.
args
)

Gets 'key' from ResourceBundle and format message using 'args'.

protected Object
handleGetObject(String key)

Implements abstract java.util.ResourceBundle.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().

public static Locale

Returns:

New Locale instance.
parseLocale
(String
Name for the locale of interest. If null, use VM default locale.
localeString
)

Parse a locale string, return corresponding Locale instance.

Inherited from java.util.ResourceBundle:
clearCacheclearCachecontainsKeygetBaseBundleNamegetBundlegetBundlegetBundlegetBundlegetBundlegetBundlegetBundlegetBundlegetLocalegetObjectgetStringgetStringArrayhandleKeySetkeySetsetParent

Field Detail

LOCALEback to summary
public static final String LOCALE

Constructor Detail

AbstractResourceBundleback to summary
protected AbstractResourceBundle()

Method Detail

getBundleback to summary
public abstract ResourceBundle getBundle()

Subclasses of this class must implement this method so that the correct resource bundle is passed to methods in this class

Returns:ResourceBundle

A java.util.ResourceBundle from the subclass. Methods in this class will use this reference.

getKeysback to summary
public final Enumeration<String> getKeys()

Implements abstract java.util.ResourceBundle.getKeys.

Since we are changing the ResourceBundle extension point, must implement getKeys() using delegate getBundle().Implements java.util.ResourceBundle.getKeys; inherits that javadoc information.

Annotations
@Override
getStringback to summary
public String getString(String key, Object[] args)

Gets 'key' from ResourceBundle and format message using 'args'.

Parameters
key:String

String key for message.

args:Object[]

Array of arguments for message.

Returns:String

String formatted message.

handleGetObjectback to summary
protected Object handleGetObject(String key)

Implements abstract java.util.ResourceBundle.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.

Annotations
@Override
parseLocaleback to summary
public static Locale parseLocale(String localeString)

Parse a locale string, return corresponding Locale instance.

Parameters
localeString:String

Name for the locale of interest. If null, use VM default locale.

Returns:Locale

New Locale instance.