Class HashResourceBundle


public class HashResourceBundle
extends ResourceBundle

Contains locale-specific objects, with primary use of integer keys.

Constructor Summary
HashResourceBundle(Locale locale)
          Constructs new HashResourceBundle instance for locale.
Method Summary
protected  Object handleGetObject(int key)
          Retrieves resource object by key.
 void put(int key, Object value)
          Updates value for resource object.
Methods inherited from class net.rim.device.api.i18n.ResourceBundle
getBundle, getBundle, getBundle, getFamily, getLocale, getObject, getObject, getString, getStringArray
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public HashResourceBundle(Locale locale)
Constructs new HashResourceBundle instance for locale.

locale - Locale for this resource bundle.
Method Detail


protected Object handleGetObject(int key)
                          throws MissingResourceException
Retrieves resource object by key.
handleGetObject in class ResourceBundle
key - Integer key associated with resource object.
Resource object associated with integer key.
MissingResourceException - If the object associated with the key not found.
JDE 4.0.2


public void put(int key,
                Object value)
Updates value for resource object.

Invoke this method to add or adds or replaces a key-value pair. Using null for the value will remove the pair the map.

key - Integer key for resource object.
value - New resource object for provided key; if you pass null for this parameter, this parameter removes the resource object if one already existed, or simply does not add it to the bundle.
JDE 4.0.2

Copyright 1999-2004 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.