org.codehaus.spice.salt.i18n
Class Resources

java.lang.Object
  extended by org.codehaus.spice.salt.i18n.I18nResources
      extended by org.codehaus.spice.salt.i18n.Resources

public class Resources
extends I18nResources

A class to simplify extracting localized strings, icons and other common resources from a ResourceBundle.

Author:
Peter Donald

Field Summary
 
Fields inherited from class org.codehaus.spice.salt.i18n.I18nResources
m_baseName, m_classLoader, m_locale
 
Constructor Summary
Resources(String baseName, ClassLoader classLoader)
          Constructor that builds a manager in default locale using specified ClassLoader.
Resources(String baseName, Locale locale, ClassLoader classLoader)
          Constructor that builds a manager in specified locale.
 
Method Summary
 
Methods inherited from class org.codehaus.spice.salt.i18n.I18nResources
format, format, format, format, format, format, getBoolean, getBoolean, getBundle, getByte, getByte, getChar, getChar, getDate, getDate, getDateTime, getDateTime, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort, getString, getString, getTime, getTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resources

public Resources(String baseName,
                 ClassLoader classLoader)
Constructor that builds a manager in default locale using specified ClassLoader.

Parameters:
baseName - the base name of ResourceBundle
classLoader - the classLoader to load ResourceBundle from

Resources

public Resources(String baseName,
                 Locale locale,
                 ClassLoader classLoader)
Constructor that builds a manager in specified locale.

Parameters:
baseName - the base name of ResourceBundle
locale - the Locale for resource bundle
classLoader - the classLoader to load ResourceBundle from


Copyright © 1999-2008 Codehaus. All Rights Reserved.