public abstract class

OpenListResourceBundle

extends ResourceBundle
java.lang.Object
   ↳ java.util.ResourceBundle
     ↳ sun.util.resources.OpenListResourceBundle
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Subclass of ResourceBundle which mimics ListResourceBundle, but provides more hooks for specialized subclass behavior. For general description, see ListResourceBundle.

This class leaves handleGetObject non-final, and adds a method createMap which allows subclasses to use specialized Map implementations.

Summary

[Expand]
Inherited Fields
From class java.util.ResourceBundle
Protected Constructors
OpenListResourceBundle()
Sole constructor.
Public Methods
Enumeration<String> getKeys()
Implementation of ResourceBundle.getKeys.
OpenListResourceBundle getParent()
Returns the parent bundle
Set<String> handleGetKeys()
Returns a set of keys provided in this resource bundle
Object handleGetObject(String key)
Gets an object for the given key from this resource bundle.
Protected Methods
Map createMap(int size)
Lets subclasses provide specialized Map implementations.
abstract Object[][] getContents()
See ListResourceBundle class description.
[Expand]
Inherited Methods
From class java.util.ResourceBundle
From class java.lang.Object

Protected Constructors

protected OpenListResourceBundle ()

Sole constructor. (For invocation by subclass constructors, typically implicit.)

Public Methods

public Enumeration<String> getKeys ()

Implementation of ResourceBundle.getKeys.

Returns
  • an Enumeration of the keys contained in this ResourceBundle and its parent bundles.

public OpenListResourceBundle getParent ()

Returns the parent bundle

public Set<String> handleGetKeys ()

Returns a set of keys provided in this resource bundle

public Object handleGetObject (String key)

Gets an object for the given key from this resource bundle. Returns null if this resource bundle does not contain an object for the given key.

Parameters
key the key for the desired object
Returns
  • the object for the given key, or null

Protected Methods

protected Map createMap (int size)

Lets subclasses provide specialized Map implementations. Default uses HashMap.

protected abstract Object[][] getContents ()

See ListResourceBundle class description.