Apache log4cxx  Version 0.10.0
PropertyResourceBundle Class Reference

PropertyResourceBundle is a concrete subclass of ResourceBundle that manages resources for a locale using a set of static strings from a property file. More...

Inherits ResourceBundle.

List of all members.

Public Member Functions

 PropertyResourceBundle (InputStreamPtr inStream)
 Creates a property resource bundle.
virtual LogString getString (const LogString &key) const
 Gets a string for the given key from this resource bundle or one of its parents.

Protected Attributes

Properties properties
- Protected Attributes inherited from ResourceBundle
ResourceBundlePtr parent
 The parent bundle of this bundle.
- Protected Attributes inherited from ObjectImpl
unsigned int volatile ref

Additional Inherited Members

- Static Public Member Functions inherited from ResourceBundle
static ResourceBundlePtr getBundle (const LogString &baseName, const Locale &locale)
 Gets a resource bundle using the specified base name and locale.
- Protected Member Functions inherited from ResourceBundle
void setParent (const ResourceBundlePtr &parent1)

Detailed Description

PropertyResourceBundle is a concrete subclass of ResourceBundle that manages resources for a locale using a set of static strings from a property file.


Constructor & Destructor Documentation

PropertyResourceBundle ( InputStreamPtr  inStream)

Creates a property resource bundle.

Parameters:
inStreamproperty file to read from.
Exceptions:
IOExceptionif an error occurred when reading from the input stream.

Member Function Documentation

virtual LogString getString ( const LogString key) const
virtual

Gets a string for the given key from this resource bundle or one of its parents.

Calling this method is equivalent to calling

                   @param key the key for the desired string
                   @return the string for the given key
                   @throw MissingResourceException - if no object for the given key
                   can be found

Implements ResourceBundle.


Member Data Documentation

Properties properties
protected

The documentation for this class was generated from the following file: