Package java.util
Class ListResourceBundle
- java.lang.Object
-
- java.util.ResourceBundle
-
- java.util.ListResourceBundle
-
- Direct Known Subclasses:
HolidayBundle,HolidayBundle_da,HolidayBundle_da_DK,HolidayBundle_de,HolidayBundle_de_AT,HolidayBundle_de_DE,HolidayBundle_el,HolidayBundle_el_GR,HolidayBundle_en,HolidayBundle_en_CA,HolidayBundle_en_GB,HolidayBundle_en_US,HolidayBundle_es,HolidayBundle_es_MX,HolidayBundle_fr,HolidayBundle_fr_CA,HolidayBundle_fr_FR,HolidayBundle_it,HolidayBundle_it_IT,HolidayBundle_iw,HolidayBundle_iw_IL,HolidayBundle_ja_JP
public abstract class ListResourceBundle extends ResourceBundle
ListResourceBundleis the abstract superclass of classes which provide resources by implementing thegetContents()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
All Methods Instance Methods Abstract Methods Concrete Methods 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
-
-
-
-
Method Detail
-
getContents
protected abstract Object[][] 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
public Enumeration<String> 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
public final Object handleGetObject(String key)
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
protected Set<String> 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
-
-