com.motorola.iden.resourcebundle
Class PropertyResourceBundle

java.lang.Object
  extended bycom.motorola.iden.resourcebundle.ResourceBundle
      extended bycom.motorola.iden.resourcebundle.PropertyResourceBundle

public class PropertyResourceBundle
extends ResourceBundle

PropertyResourceBundle is a concrete subclass of ResourceBundle that manages resources for a locale using a set of static strings from a property file. See ResourceBundle for more information about resource bundles.

Unlike other types of resource bundle, you don't subclass PropertyResourceBundle. Instead, you supply properties files containing the resource data. ResourceBundle.getBundle will automatically look for the appropriate properties file and create a PropertyResourceBundle that refers to it. See ResourceBundle.getBundle for a complete description of the search and instantiation strategy.


MOTOROLA and the Stylized M Logo are registered trademarks of Motorola, Inc. Reg. U.S. Pat. & Tm. Off.
© Copyright 2003 Motorola, Inc. All Rights Reserved.

See Also:
ResourceBundle, ListResourceBundle

Constructor Summary
PropertyResourceBundle(String propertyFileName)
          Creates a property resource bundle.
 
Method Summary
 Enumeration getKeys()
          Implementation of ResourceBundle.getKeys.
 Object handleGetObject(String key)
          Implements ResourceBundle.handleGetObject.
 
Methods inherited from class com.motorola.iden.resourcebundle.ResourceBundle
getBundle, getBundle, getLocale, getObject, getString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyResourceBundle

public PropertyResourceBundle(String propertyFileName)
                       throws IOException
Creates a property resource bundle.

Parameters:
propertyFileName - property file name to read from.
Method Detail

handleGetObject

public Object handleGetObject(String key)
Implements ResourceBundle.handleGetObject.

Parameters:
key - the key for the desired object
Returns:
the object for the given key, or null

getKeys

public Enumeration getKeys()
Implementation of ResourceBundle.getKeys.

Specified by:
getKeys in class ResourceBundle