ListResourceBundleNameListResourceBundleSynopsis
DescriptionThe ListResourceBundle class is an abstract subclass of ResourceBundle that represents a list of resources for a locale. The resources are listed as a set of key/value pairs. Internally, a Hashtable is used for quick lookup of values. To subclass ListResourceBundle, all you need to do is override getContents() to return a two-dimensional array of Objects that contains the key/value pairs. When ResourceBundle.getBundle() is called, it attempts to find a resource bundle that most closely matches a particular locale. This can be either a ListResourceBundle subclass or a property file, represented by a PropertyResourceBundle. Once the resource bundle has been retrieved, its contents can be used by the application to present locale-specific information. PropertyResourceBundle inherits a lot of functionality from ResourceBundle; see the class description of ResourceBundle for more information. Class Summary
public abstract class java.util.ListResourceBundle extends java.util.ResourceBundle { // Instance Methods public Enumeration getKeys(); public final Object handleGetObject(String key); // Protected Instance Methods protected abstract Object[][] getContents(); } Instance MethodsgetKeyspublic Enumeration getKeys()
handleGetObjectpublic final Object handleGetObject(String key)
Protected Instance MethodsgetContentsprotected abstract Object[][] getContents()
Inherited Methods
See AlsoEnumeration, Hashtable, PropertyResourceBundle, ResourceBundle |
|