Skip to content

Most visited

Recently visited

navigation
Added in API level 1

ListResourceBundle

public abstract class ListResourceBundle
extends ResourceBundle

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


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

See also:

Summary

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.

Inherited methods

From class java.util.ResourceBundle
From class java.lang.Object

Public constructors

ListResourceBundle

Added in API level 1
ListResourceBundle ()

Constructs a new instance of this class.

Public methods

getKeys

Added in API level 1
Enumeration<String> getKeys ()

Returns the names of the resources contained in this ResourceBundle.

Returns
Enumeration<String> an Enumeration of the resource names.

handleGetObject

Added in API level 1
Object handleGetObject (String key)

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

Parameters
key String: the name of the resource.
Returns
Object the resource object.

Protected methods

getContents

Added in API level 1
Object[][] getContents ()

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
Object[][] a Object array containing the resources.

handleKeySet

Added in API level 9
Set<String> handleKeySet ()

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

Returns
Set<String> a set of the keys in this ResourceBundle but not in its parents.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.