public abstract class

ListResourceBundle

extends ResourceBundle
java.lang.Object
   ↳ java.util.ResourceBundle
     ↳ java.util.ListResourceBundle

Class Overview

ListResourceBundle is the abstract superclass of classes which provide resources by implementing the getContents() method to return the list of resources.

See Also

Summary

[Expand]
Inherited Fields
From class java.util.ResourceBundle
Public Constructors
ListResourceBundle()
Constructs a new instance of this class.
Public Methods
Enumeration<String> getKeys()
Returns the names of the resources contained in this ResourceBundle.
final Object handleGetObject(String key)
Returns the named resource from this ResourceBundle, or null if the resource is not found.
Protected Methods
abstract Object[][] getContents()
Returns an Object array containing the resources of this ListResourceBundle.
Set<String> handleKeySet()
Returns a set of the keys in this ResourceBundle but not in its parents.
[Expand]
Inherited Methods
From class java.util.ResourceBundle
From class java.lang.Object

Public Constructors

public ListResourceBundle ()

Since: API Level 1

Constructs a new instance of this class.

Public Methods

public Enumeration<String> getKeys ()

Since: API Level 1

Returns the names of the resources contained in this ResourceBundle.

Returns
  • an Enumeration of the resource names.

public final Object handleGetObject (String key)

Since: API Level 1

Returns the named resource from this ResourceBundle, or null if the resource is not found.

Parameters
key the name of the resource.
Returns
  • the resource object.

Protected Methods

protected abstract Object[][] getContents ()

Since: API Level 1

Returns an Object array containing the resources of this ListResourceBundle. 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 Object array containing the resources.

protected Set<String> handleKeySet ()

Since: API Level 9

Returns a set of the keys in this ResourceBundle but not in its parents.

Returns
  • a set of the keys in this ResourceBundle but not in its parents.