info.informatica.util
Class FormattedResourceBundle

java.lang.Object
  extended by info.informatica.util.FormattedResourceBundle

public final class FormattedResourceBundle
extends Object

A resource bundle that contains MessageFormat strings.

Author:
amengual at informatica dot info
See Also:
ResourceBundle

Method Summary
 String formatString(String key, int i)
           
 String formatString(String key, Object[] o)
           
 String formatString(String key, String arg)
           
 String formatString(String key, String arg, int i)
           
 String formatString(String key, String arg1, String arg2)
           
 Enumeration<String> getKeys()
           
static FormattedResourceBundle getLocalBundle(String baseName)
          Get the appropriate FormattedResourceBundle class.
static FormattedResourceBundle getLocalBundle(String baseName, Locale locale)
          Get the appropriate FormattedResourceBundle class.
static FormattedResourceBundle getLocalBundle(String baseName, Locale locale, ClassLoader loader)
          Get the appropriate FormattedResourceBundle subclass.
 String getString(String key)
           
 void setParent(FormattedResourceBundle parent)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

public String getString(String key)

formatString

public String formatString(String key,
                           String arg)

formatString

public String formatString(String key,
                           String arg1,
                           String arg2)

formatString

public String formatString(String key,
                           String arg,
                           int i)

formatString

public String formatString(String key,
                           Object[] o)

formatString

public String formatString(String key,
                           int i)

setParent

public void setParent(FormattedResourceBundle parent)

getKeys

public Enumeration<String> getKeys()

getLocalBundle

public static FormattedResourceBundle getLocalBundle(String baseName)
                                              throws MissingResourceException
Get the appropriate FormattedResourceBundle class.

Parameters:
baseName -
Throws:
MissingResourceException

getLocalBundle

public static FormattedResourceBundle getLocalBundle(String baseName,
                                                     Locale locale)
Get the appropriate FormattedResourceBundle class.

Parameters:
baseName -
locale -

getLocalBundle

public static FormattedResourceBundle getLocalBundle(String baseName,
                                                     Locale locale,
                                                     ClassLoader loader)
                                              throws MissingResourceException
Get the appropriate FormattedResourceBundle subclass.

Parameters:
baseName - see class description.
locale - see class description.
loader - the ClassLoader to load the resource from
Throws:
MissingResourceException