|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.ResourceBundle
sun.util.resources.OpenListResourceBundle
public abstract class OpenListResourceBundle
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.
| Field Summary |
|---|
| Fields inherited from class java.util.ResourceBundle |
|---|
parent |
| Constructor Summary | |
|---|---|
protected |
OpenListResourceBundle()
Sole constructor. |
| Method Summary | |
|---|---|
protected Map |
createMap(int size)
Lets subclasses provide specialized Map implementations. |
protected abstract Object[][] |
getContents()
See ListResourceBundle class description. |
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)
Override this method to provide the resource for a keys. |
| Methods inherited from class java.util.ResourceBundle |
|---|
getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected OpenListResourceBundle()
| Method Detail |
|---|
public Object handleGetObject(String key)
ResourceBundlegetObject. If you don't have a resource
for the given key, you should return null instead throwing a
MissingResourceException. You don't have to ask the parent, getObject()
already does this; nor should you throw a MissingResourceException.
handleGetObject in class ResourceBundlekey - the key of the resource
public Enumeration<String> getKeys()
getKeys in class ResourceBundlepublic Set<String> handleGetKeys()
public OpenListResourceBundle getParent()
protected abstract Object[][] getContents()
protected Map createMap(int size)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||