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 PropertyResourceBundle
implements I_CmsResourceBundle
A property based resource bundle with increased visibility of some key methods.
- Since:
- 6.2.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
-
Field Summary
Fields inherited from class java.util.ResourceBundle
parent
-
Constructor Summary
ConstructorDescriptionCmsPropertyResourceBundle
(InputStream stream) Default constructor from parent class. -
Method Summary
Modifier and TypeMethodDescriptiongetClone()
Creates a clone of the resource bundle.void
Sets the locale used for this resource bundle.void
Sets the parent bundle.Methods inherited from class java.util.PropertyResourceBundle
getKeys, handleGetObject, handleKeySet
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getObject, getString, getStringArray, keySet
-
Field Details
-
m_locale
The locale to use.
-
-
Constructor Details
-
CmsPropertyResourceBundle
Default constructor from parent class.- Parameters:
stream
- property file to read from- Throws:
IOException
- in case the file could not be read from
-
-
Method Details
-
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:
-
getLocale
- Overrides:
getLocale
in classResourceBundle
- See Also:
-
setLocale
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:
-
setParent
Description copied from interface:I_CmsResourceBundle
Sets the parent bundle.- Specified by:
setParent
in interfaceI_CmsResourceBundle
- Overrides:
setParent
in classResourceBundle
- Parameters:
p
- the parent bundle to set- See Also:
-