Class AbstractI18NResource
java.lang.Object
com.atlassian.confluence.util.i18n.AbstractI18NResource
- All Implemented Interfaces:
I18NResource
- Direct Known Subclasses:
LanguagePluginI18NResource
,PluginI18NResource
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract InputStream
getPropertyResourceAsStream
(String locale)
-
Field Details
-
log
public static final org.slf4j.Logger log
-
-
Constructor Details
-
AbstractI18NResource
public AbstractI18NResource()
-
-
Method Details
-
getBundle
- Specified by:
getBundle
in interfaceI18NResource
-
getBundle
- Specified by:
getBundle
in interfaceI18NResource
- Returns:
- a different locale version of the bundle mapped to this resource
-
getPropertyResourceAsStream
- Parameters:
locale
- the locale of the properties to load. Can be null.- Returns:
- an InputStream for a properties resource. Should return null if no properties for the given locale were found
-