java.util.ResourceBundle (JDK 1.1)
This abstract class allows subclasses to define sets of localized resources which can then be dynamically loaded as needed by internationalized programs. Such resources may include user-visible text and images that appear in an application, and even more complex things such as Menu objects.
Use getBundle() to load a ResourceBundle subclass that is appropriate for the default or the specified locale. Use getObject(), getString(), and getStringArray() to look up a named resource in a bundle. To define a bundle, provide implementations of handleGetObject() and getKeys(). It is often easier, however, to subclass ListResourceBundle, or to provide a property file that is used by PropertyResourceBundle. The name of any localized ResourceBundle class you define should include the locale language code, and, optionally, the locale country code.
public abstract classResourceBundleextends Object { //Default Constructor: public ResourceBundle()//Protected Instance Variablesprotected ResourceBundleparent; //Class Methodspublic static final ResourceBundlegetBundle(StringbaseName) throws MissingResourceException; public static final ResourceBundlegetBundle(StringbaseName, Localelocale); //Public Instance Methodspublic abstract EnumerationgetKeys(); public final ObjectgetObject(Stringkey) throws MissingResourceException; public final StringgetString(Stringkey) throws MissingResourceException; public final String[]getStringArray(Stringkey) throws MissingResourceException; //Protected Instance Methodsprotected abstract ObjecthandleGetObject(Stringkey) throws MissingResourceException; protected voidsetParent(ResourceBundleparent); }
Extended By:
ListResourceBundle, PropertyResourceBundle
Passed To:
ResourceBundle.setParent()
Returned By:
ResourceBundle.getBundle()
Type Of:
ResourceBundle.parent