|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.moredata.util.BundleCache
BundleCache.java Company MoreData
| Constructor Summary | |
BundleCache()
Creates a new instance of BundleCache |
|
| Method Summary | |
void |
addBundle(java.util.ResourceBundle bundle,
java.lang.String base)
Adds a new ResourceBundle to the cache. |
java.util.ResourceBundle |
getBundle(java.lang.String base,
java.util.Locale locale)
Returns a ResourceBundle for the given locale with a specified base name. |
java.lang.Object |
getObject(java.lang.String base,
java.util.Locale locale,
java.lang.String key)
Returns a Object for the given locale and key from the resource file. |
java.lang.String |
getString(java.lang.String base,
java.util.Locale locale,
java.lang.String key)
Returns a String for the given locale and key from the resource file. |
java.lang.String[] |
getStringArray(java.lang.String base,
java.util.Locale locale,
java.lang.String key)
Returns a StringArray for the given locale and key from the resource file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BundleCache()
| Method Detail |
public java.lang.Object getObject(java.lang.String base,
java.util.Locale locale,
java.lang.String key)
throws java.util.MissingResourceException
base - The base name of the resourse file to search for.locale - A java.util.Locale.key - the key of the object.
java.util.MissingResourceException - if no Object was found for the given key.
public java.lang.String getString(java.lang.String base,
java.util.Locale locale,
java.lang.String key)
throws java.util.MissingResourceException
base - The base name of the resourse file to search for.locale - A java.util.Locale.key - the key of the object.
java.util.MissingResourceException - if no String was found for the given key.
public java.lang.String[] getStringArray(java.lang.String base,
java.util.Locale locale,
java.lang.String key)
throws java.util.MissingResourceException
base - The base name of the resourse file to search for.locale - A java.util.Locale.key - the key of the object.
java.util.MissingResourceException - if no StringArray was found for the
given key.
public java.util.ResourceBundle getBundle(java.lang.String base,
java.util.Locale locale)
throws java.util.MissingResourceException
base - The base name of the resourse file to search for.locale - A java.util.Locale.
java.util.MissingResourceException - if no ResourceBundle was found with the
given base name.
public void addBundle(java.util.ResourceBundle bundle,
java.lang.String base)
bundle - The resourceBundle.base - The base name of the ResourceBundle
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||