PropertyResourceBundle Class Reference

Inheritance diagram for PropertyResourceBundle:

Inheritance graph
[legend]
Collaboration diagram for PropertyResourceBundle:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PropertyResourceBundle (istream &inStream)
virtual String getString (const String &key) const

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 istream &  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.


Member Function Documentation

String getString const String &  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:
MissingResourceException - if no object for the given key can be found

Implements ResourceBundle.


The documentation for this class was generated from the following files:
  • propertyresourcebundle.h
  • propertyresourcebundle.cpp

Copyright © 1999-2004, Apache Software Foundation