com.atlassian.confluence.util.i18n
Class AbstractI18NResource

java.lang.Object
  extended by com.atlassian.confluence.util.i18n.AbstractI18NResource
All Implemented Interfaces:
I18NResource
Direct Known Subclasses:
LanguagePluginI18NResource, PluginI18NResource

public abstract class AbstractI18NResource
extends java.lang.Object
implements I18NResource


Field Summary
static org.slf4j.Logger log
           
 
Constructor Summary
AbstractI18NResource()
           
 
Method Summary
 java.util.ResourceBundle getBundle()
           
 java.util.ResourceBundle getBundle(java.lang.String localeString)
           
protected abstract  java.io.InputStream getPropertyResourceAsStream(java.lang.String locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.slf4j.Logger log
Constructor Detail

AbstractI18NResource

public AbstractI18NResource()
Method Detail

getBundle

public java.util.ResourceBundle getBundle()
Specified by:
getBundle in interface I18NResource

getBundle

public java.util.ResourceBundle getBundle(java.lang.String localeString)
Specified by:
getBundle in interface I18NResource
Returns:
a different locale version of the bundle mapped to this resource

getPropertyResourceAsStream

protected abstract java.io.InputStream getPropertyResourceAsStream(java.lang.String locale)
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


Copyright © 2003-2014 Atlassian. All Rights Reserved.