|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.util.resources.ResourceManager
public class ResourceManager
This class offers convenience methods to decode resource bundle entries
Field Summary | |
---|---|
protected ResourceBundle |
bundle
The managed resource bundle |
Constructor Summary | |
---|---|
ResourceManager(ResourceBundle rb)
Creates a new resource manager |
Method Summary | |
---|---|
boolean |
getBoolean(String key)
Returns the boolean mapped with the given key |
int |
getCharacter(String key)
|
int |
getInteger(String key)
Returns the integer mapped with the given string |
String |
getString(String key)
Returns the string that is mapped with the given key |
List |
getStringList(String key)
Returns the tokens that compose the string mapped with the given key. |
List |
getStringList(String key,
String delim)
Returns the tokens that compose the string mapped with the given key. |
List |
getStringList(String key,
String delim,
boolean returnDelims)
Returns the tokens that compose the string mapped with the given key |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ResourceBundle bundle
Constructor Detail |
---|
public ResourceManager(ResourceBundle rb)
rb
- a resource bundleMethod Detail |
---|
public String getString(String key) throws MissingResourceException
key
- a key in the resource bundle
MissingResourceException
- if key is not the name of a resourcepublic List getStringList(String key) throws MissingResourceException
key
- a key of the resource bundle
MissingResourceException
- if key is not the name of a resourcepublic List getStringList(String key, String delim) throws MissingResourceException
key
- a key of the resource bundledelim
- the delimiters of the tokens
MissingResourceException
- if key is not the name of a resourcepublic List getStringList(String key, String delim, boolean returnDelims) throws MissingResourceException
key
- a key of the resource bundledelim
- the delimiters of the tokensreturnDelims
- if true, the delimiters are returned in the list
MissingResourceException
- if key is not the name of a resourcepublic boolean getBoolean(String key) throws MissingResourceException, ResourceFormatException
key
- a key of the resource bundle
MissingResourceException
- if key is not the name of a resource
ResourceFormatException
- if the resource is malformedpublic int getInteger(String key) throws MissingResourceException, ResourceFormatException
key
- a key of the resource bundle
MissingResourceException
- if key is not the name of a resource
ResourceFormatException
- if the resource is malformedpublic int getCharacter(String key) throws MissingResourceException, ResourceFormatException
MissingResourceException
ResourceFormatException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |