Package 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 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
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Locale
m_locale
The locale to use.
-
Constructor Summary
Constructors Constructor Description CmsPropertyResourceBundle(java.io.InputStream stream)
Default constructor from parent class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I_CmsResourceBundle
getClone()
Creates a clone of the resource bundle.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
-
-
-
-
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
-
getClone
public I_CmsResourceBundle getClone()
Description copied from interface:I_CmsResourceBundle
Creates a clone of the resource bundle.(This may not actually clone the resource bundle if it is immutable).
- Specified by:
getClone
in interfaceI_CmsResourceBundle
- Returns:
- a clone of the resource bundle
- See Also:
I_CmsResourceBundle.getClone()
-
getLocale
public java.util.Locale getLocale()
- Overrides:
getLocale
in classjava.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 interfaceI_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 interfaceI_CmsResourceBundle
- Overrides:
setParent
in classjava.util.ResourceBundle
- Parameters:
p
- the parent bundle to set- See Also:
I_CmsResourceBundle.setParent(java.util.ResourceBundle)
-
-