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
FieldsFields inherited from class java.util.ResourceBundle
parent -
Constructor Summary
ConstructorsConstructorDescriptionCmsPropertyResourceBundle(InputStream stream) Default constructor from parent class. -
Method Summary
Modifier and TypeMethodDescriptiongetClone()Creates a clone of the resource bundle.voidSets the locale used for this resource bundle.voidSets the parent bundle.Methods inherited from class java.util.PropertyResourceBundle
getKeys, handleGetObject, handleKeySetMethods 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_CmsResourceBundleCreates a clone of the resource bundle.(This may not actually clone the resource bundle if it is immutable).
- Specified by:
getClonein interfaceI_CmsResourceBundle- Returns:
- a clone of the resource bundle
- See Also:
-
getLocale
- Overrides:
getLocalein classResourceBundle- See Also:
-
setLocale
Description copied from interface:I_CmsResourceBundleSets the locale used for this resource bundle.- Specified by:
setLocalein interfaceI_CmsResourceBundle- Parameters:
l- the locale to set- See Also:
-
setParent
Description copied from interface:I_CmsResourceBundleSets the parent bundle.- Specified by:
setParentin interfaceI_CmsResourceBundle- Overrides:
setParentin classResourceBundle- Parameters:
p- the parent bundle to set- See Also:
-