PropertyResourceBundle is a concrete subclass of ResourceBundle that manages resources for a locale using a set of static strings from a property file.
More...
#include <propertyresourcebundle.h>
|
| PropertyResourceBundle (InputStreamPtr inStream) |
| Creates a property resource bundle. More...
|
|
virtual LogString | getString (const LogString &key) const |
| Gets a string for the given key from this resource bundle or one of its parents. More...
|
|
void | addRef () const |
|
void | releaseRef () const |
|
virtual bool | instanceof (const Class &clazz) const =0 |
|
virtual const void * | cast (const Class &clazz) const =0 |
|
|
static ResourceBundlePtr | getBundle (const LogString &baseName, const Locale &locale) |
| Gets a resource bundle using the specified base name and locale. More...
|
|
void | setParent (const ResourceBundlePtr &parent1) |
|
PropertyResourceBundle is a concrete subclass of ResourceBundle that manages resources for a locale using a set of static strings from a property file.
◆ PropertyResourceBundle()
log4cxx::helpers::PropertyResourceBundle::PropertyResourceBundle |
( |
InputStreamPtr |
inStream | ) |
|
Creates a property resource bundle.
- Parameters
-
inStream | property file to read from. |
- Exceptions
-
IOException | if an error occurred when reading from the input stream. |
◆ getString()
virtual LogString log4cxx::helpers::PropertyResourceBundle::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
- Parameters
-
key | the key for the desired string |
- Returns
- the string for the given key
- Exceptions
-
Implements log4cxx::helpers::ResourceBundle.
The documentation for this class was generated from the following file: