org.sbml.jsbml.util
public class XMLResourceBundleControl extends java.util.ResourceBundle.Control
XMLResourceBundleControl.XMLResourceBundle
from an XML formatted file (for the specification of
the document see Properties
).
Example usage:
ResourceBundle resource = ResourceManager.getBundle("my.package.locales.Labels"); String myString = resource.getString("MY_KEY");
Modifier and Type | Class and Description |
---|---|
private static class |
XMLResourceBundleControl.XMLResourceBundle
An adapter class that wraps a
Properties class and provides its
functionality as a ResourceBundle . |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
XML
The extension for XML files.
|
Constructor and Description |
---|
XMLResourceBundleControl() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getFormats(java.lang.String baseName) |
java.util.ResourceBundle |
newBundle(java.lang.String baseName,
java.util.Locale locale,
java.lang.String format,
java.lang.ClassLoader loader,
boolean reload) |
public static final java.lang.String XML
public java.util.List<java.lang.String> getFormats(java.lang.String baseName)
getFormats
in class java.util.ResourceBundle.Control
public java.util.ResourceBundle newBundle(java.lang.String baseName, java.util.Locale locale, java.lang.String format, java.lang.ClassLoader loader, boolean reload) throws java.lang.IllegalAccessException, java.lang.InstantiationException, java.io.IOException
newBundle
in class java.util.ResourceBundle.Control
java.lang.IllegalAccessException
java.lang.InstantiationException
java.io.IOException