|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.util.ResourceBundleUtils
ResourceBundleUtils provides utilities for working with
java.util.ResourceBundle objects. This class maintains a static Map of
ResourceBundle instances by name. The Map of ResourceBundles is lazilly
loaded by use of static method:
public static ResourceBundleUtils getResourceBundleUtils(String type)where 'type' corresponds to a category of resources.
Resources are loaded from a Java Properties file within the current classpath. For example, if type="server", then a file named: 'server.properties' must exist within the current classpath (in the default package location).
ResourceBundle| Method Summary | |
static ResourceBundleUtils |
getResourceBundleUtils(String type)
Returns the ResourceBundle which is mapped to the specified name. |
String |
getString(String key)
Returns the String that is mapped to the specified key. |
String |
getString(String key,
Object arg)
Returns the String that is mapped to the specified key. |
String |
getString(String key,
Object[] args)
Returns the String that is mapped to the specified key. |
String |
getString(String key,
Object arg1,
Object arg2)
Returns the String that is mapped to the specified key. |
String |
getString(String key,
Object arg1,
Object arg2,
Object arg3)
Returns the String that is mapped to the specified key. |
String |
getString(String key,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Returns the String that is mapped to the specified key. |
String |
getString(String key,
Object arg1,
Object arg2,
Object arg3,
Object arg4,
Object arg5)
Returns the String that is mapped to the specified key. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ResourceBundleUtils getResourceBundleUtils(String type)
type - the name of the requested resource bundle
public String getString(String key)
key - the resource bundle string key.
public String getString(String key,
Object arg)
key - a unique valuearg - first argument
public String getString(String key,
Object arg1,
Object arg2)
key - a unique valuearg1 - first argumentarg2 - second argument
public String getString(String key,
Object arg1,
Object arg2,
Object arg3)
key - a unique valuearg1 - first argumentarg2 - second argumentarg3 - third argument
public String getString(String key,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
key - a unique valuearg1 - first argumentarg2 - second argumentarg3 - third argumentarg4 - fourth argument
public String getString(String key,
Object arg1,
Object arg2,
Object arg3,
Object arg4,
Object arg5)
key - a unique valuearg1 - first argumentarg2 - second argumentarg3 - third argumentarg4 - fourth argumentarg5 - fifth argument
public String getString(String key,
Object[] args)
key - a unique valueargs - used for formatting the string
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||