org.opencms.i18n
Class CmsPropertyResourceBundle

java.lang.Object
  extended by java.util.ResourceBundle
      extended by java.util.PropertyResourceBundle
          extended by org.opencms.i18n.CmsPropertyResourceBundle
All Implemented Interfaces:
I_CmsResourceBundle

public class CmsPropertyResourceBundle
extends PropertyResourceBundle
implements I_CmsResourceBundle

A property based resource bundle with increased visibility of some key methods.

Since:
6.2.0
See Also:
CmsResourceBundleLoader

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
 
Field Summary
protected  Locale m_locale
          The locale to use.
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
CmsPropertyResourceBundle(InputStream stream)
          Default constructor from parent class.
 
Method Summary
 Locale getLocale()
           
 void setLocale(Locale l)
          Sets the locale used for this resource bundle.
 void setParent(ResourceBundle p)
          Sets the parent bundle.
 
Methods inherited from class java.util.PropertyResourceBundle
getKeys, handleGetObject, handleKeySet
 
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getObject, getString, getStringArray, keySet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_locale

protected Locale m_locale
The locale to use.

Constructor Detail

CmsPropertyResourceBundle

public CmsPropertyResourceBundle(InputStream stream)
                          throws IOException
Default constructor from parent class.

Parameters:
stream - property file to read from
Throws:
IOException - in case the file could not be read from
Method Detail

getLocale

public Locale getLocale()
Overrides:
getLocale in class ResourceBundle
See Also:
ResourceBundle.getLocale()

setLocale

public void setLocale(Locale l)
Description copied from interface: I_CmsResourceBundle
Sets the locale used for this resource bundle.

Specified by:
setLocale in interface I_CmsResourceBundle
Parameters:
l - the locale to set
See Also:
I_CmsResourceBundle.setLocale(java.util.Locale)

setParent

public void setParent(ResourceBundle p)
Description copied from interface: I_CmsResourceBundle
Sets the parent bundle.

Specified by:
setParent in interface I_CmsResourceBundle
Overrides:
setParent in class ResourceBundle
Parameters:
p - the parent bundle to set
See Also:
I_CmsResourceBundle.setParent(java.util.ResourceBundle)