Package java.util
Class ListResourceBundle
java.lang.Object
java.util.ResourceBundle
java.util.ListResourceBundle
- Direct Known Subclasses:
SerializerMessages,SerializerMessages_ca,SerializerMessages_cs,SerializerMessages_de,SerializerMessages_es,SerializerMessages_fr,SerializerMessages_hu,SerializerMessages_it,SerializerMessages_ja,SerializerMessages_ko,SerializerMessages_pl,SerializerMessages_pt_BR,SerializerMessages_ru,SerializerMessages_sk,SerializerMessages_sl,SerializerMessages_sv,SerializerMessages_tr,SerializerMessages_zh,SerializerMessages_zh_TW,XMLErrorResources,XPATHErrorResources,XResourceBundle,XResourceBundleBase,XSLTErrorResources
public abstract class ListResourceBundle extends ResourceBundle
ListResourceBundle is the abstract superclass of classes which provide
resources by implementing the getContents() method to return
the list of resources.- Since:
- 1.1
- See Also:
ResourceBundle
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control -
Field Summary
Fields inherited from class java.util.ResourceBundle
parent -
Constructor Summary
Constructors Constructor Description ListResourceBundle()Constructs a new instance of this class. -
Method Summary
Modifier and Type Method Description protected abstract Object[][]getContents()Returns anObjectarray containing the resources of thisListResourceBundle.Enumeration<String>getKeys()Returns the names of the resources contained in thisResourceBundle.ObjecthandleGetObject(String key)Returns the named resource from thisResourceBundle, or null if the resource is not found.protected Set<String>handleKeySet()Returns a set of the keys in this ResourceBundle but not in its parents.Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, keySet, setParent
-
Constructor Details
-
ListResourceBundle
public ListResourceBundle()Constructs a new instance of this class.
-
-
Method Details
-
getContents
Returns anObjectarray containing the resources of thisListResourceBundle. Each element in the array is an array of two elements, the first is the resource key string and the second is the resource.- Returns:
- a
Objectarray containing the resources.
-
getKeys
Description copied from class:ResourceBundleReturns the names of the resources contained in thisResourceBundle.- Specified by:
getKeysin classResourceBundle- Returns:
- an
Enumerationof the resource names.
-
handleGetObject
Description copied from class:ResourceBundleReturns the named resource from thisResourceBundle, or null if the resource is not found.- Specified by:
handleGetObjectin classResourceBundle- Parameters:
key- the name of the resource.- Returns:
- the resource object.
-
handleKeySet
Returns a set of the keys in this ResourceBundle but not in its parents.- Overrides:
handleKeySetin classResourceBundle- Returns:
- a set of the keys in this ResourceBundle but not in its parents.
- Since:
- 1.6
-