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 java.util.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
java.util.ResourceBundle.Control
 
Field Summary
protected  java.util.Locale m_locale
          The locale to use.
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
CmsPropertyResourceBundle(java.io.InputStream stream)
          Default constructor from parent class.
 
Method Summary
 java.util.Locale getLocale()
           
 void setLocale(java.util.Locale l)
          Sets the locale used for this resource bundle.
 void setParent(java.util.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 java.util.Locale m_locale
The locale to use.

Constructor Detail

CmsPropertyResourceBundle

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

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

getLocale

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

setLocale

public void setLocale(java.util.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(java.util.ResourceBundle p)
Description copied from interface: I_CmsResourceBundle
Sets the parent bundle.

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