org.opencms.i18n
Class CmsPropertyResourceBundle
java.lang.Object
java.util.ResourceBundle
java.util.PropertyResourceBundle
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
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 |
m_locale
protected Locale m_locale
- The locale to use.
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
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)