org.opencms.i18n
Class CmsResourceBundle
java.lang.Object
java.util.ResourceBundle
java.util.PropertyResourceBundle
org.opencms.i18n.CmsResourceBundle
public class CmsResourceBundle
- extends PropertyResourceBundle
A property based resource bundle with increased visibility of some key methods.
This class is required because the methods setParent(ResourceBundle) and
setLocale(Locale) are not visible in the standard implementation. However,
access to these methods is required by the CmsResourceBundleLoader.
- Since:
- 6.2.0
- Version:
- $Revision: 1.2 $
- Author:
- Alexander Kandzior
- See Also:
CmsResourceBundleLoader
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_locale
protected Locale m_locale
- The locale to use.
CmsResourceBundle
public CmsResourceBundle(InputStream stream)
throws IOException
- Default constructer from parent class.
- Parameters:
stream - property file to read from
- Throws:
IOException - in case the file could not be read from
getLocale
public Locale getLocale()
- Overrides:
getLocale in class ResourceBundle
- See Also:
ResourceBundle.getLocale()
setLocale
protected void setLocale(Locale l)
- Sets the locale used for this resource bundle.
- Parameters:
l - the locale to set
setParent
protected void setParent(ResourceBundle p)
- Overrides:
setParent in class ResourceBundle
- See Also:
ResourceBundle.setParent(java.util.ResourceBundle)