public class ResourceBundleSet
extends java.util.ResourceBundle
Constructor and Description |
---|
ResourceBundleSet(java.lang.String resource) |
Modifier and Type | Method and Description |
---|---|
void |
addResource(java.lang.String resource) |
java.util.Enumeration<java.lang.String> |
getKeys() |
protected java.lang.Object |
handleGetObject(java.lang.String key) |
static java.lang.String |
insertParams(java.lang.String str,
java.lang.Object[] params) |
java.lang.String |
resolveMessage(java.lang.String msg)
Resolves msg.
|
java.lang.String |
resolveMessage(java.lang.String msg,
java.lang.Object obj)
Resolves msg.
|
java.lang.String |
resolveMessage(java.lang.String msg,
java.lang.Object[] params)
Resolves msg
|
void |
setLocale(java.util.Locale locale) |
public void addResource(java.lang.String resource)
public void setLocale(java.util.Locale locale)
public java.util.Enumeration<java.lang.String> getKeys()
getKeys
in class java.util.ResourceBundle
public java.lang.String resolveMessage(java.lang.String msg)
msg
- message to resolvepublic java.lang.String resolveMessage(java.lang.String msg, java.lang.Object obj)
msg
- message to resolveobj
- parameter to insert into the resolved messagepublic java.lang.String resolveMessage(java.lang.String msg, java.lang.Object[] params)
msg
- message to resolveparams
- parameters to insert into the resolved messagepublic static java.lang.String insertParams(java.lang.String str, java.lang.Object[] params)
protected java.lang.Object handleGetObject(java.lang.String key)
handleGetObject
in class java.util.ResourceBundle