java.lang.Object
cloud.piranha.core.impl.DefaultLocaleEncodingManager
- All Implemented Interfaces:
LocaleEncodingManager
The default LocaleEncodingManager.
- Author:
- Manfred Riem ([email protected])
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCharacterEncoding
(String locale, String encoding) Add a mapping between a locale and an encoding.getCharacterEncoding
(String locale) Get the encoding for the locale.
-
Constructor Details
-
DefaultLocaleEncodingManager
public DefaultLocaleEncodingManager()Constructor.
-
-
Method Details
-
addCharacterEncoding
Description copied from interface:LocaleEncodingManager
Add a mapping between a locale and an encoding.- Specified by:
addCharacterEncoding
in interfaceLocaleEncodingManager
- Parameters:
locale
- the locale.encoding
- the encoding.
-
getCharacterEncoding
Description copied from interface:LocaleEncodingManager
Get the encoding for the locale.- Specified by:
getCharacterEncoding
in interfaceLocaleEncodingManager
- Parameters:
locale
- the locale.- Returns:
- the encoding, otherwise null.
-