加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090218034229/http://developer.android.com:80/reference/java/util/ListResourceBundle.html
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 ListResourceBundle.
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 which contains the resources of this ListResourceBundle.
[Expand]
Inherited Methods
From class java.util.ResourceBundle
From class java.lang.Object

Public Constructors

public ListResourceBundle ()

Constructs a new instance of this class.

Public Methods

public Enumeration<String> getKeys ()

Returns the names of the resources contained in this ListResourceBundle.

Returns
  • an Enumeration of the resource names

public final Object handleGetObject (String key)

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 ()

Returns an Object array which contains the resources of this ListResourceBundle. Each element in the array is an array of two elements, the first is the resource key and the second is the resource.

Returns
  • a Object array containing the resources