|
fop 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.ResourceBundle
org.apache.fop.util.XMLResourceBundle
This class is a ResourceBundle that loads its contents from XML files instead of properties files (like PropertiesResourceBundle).
The XML format for this resource bundle implementation is the following (the same as Apache Cocoon's XMLResourceBundle):
<catalogue xml:lang="en"> <message key="key1">Message <br/> Value 1</message> <message key="key2">Message <br/> Value 1</message> ... </catalogue>
Field Summary |
Fields inherited from class java.util.ResourceBundle |
parent |
Constructor Summary | |
XMLResourceBundle(java.io.InputStream in)
Creates a resource bundle from an InputStream. |
Method Summary | |
java.util.Enumeration |
getKeys()
|
java.util.Locale |
getLocale()
|
static java.util.ResourceBundle |
getXMLBundle(java.lang.String baseName,
java.lang.ClassLoader loader)
Gets a resource bundle using the specified base name, default locale, and class loader. |
static java.util.ResourceBundle |
getXMLBundle(java.lang.String baseName,
java.util.Locale locale,
java.lang.ClassLoader loader)
Gets a resource bundle using the specified base name, locale, and class loader. |
protected java.lang.Object |
handleGetObject(java.lang.String key)
|
java.lang.String |
toString()
|
Methods inherited from class java.util.ResourceBundle |
getBundle, getBundle, getBundle, getObject, getString, getStringArray, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public XMLResourceBundle(java.io.InputStream in) throws java.io.IOException
in
- the stream to read from
java.io.IOException
- if an I/O error occursMethod Detail |
public static java.util.ResourceBundle getXMLBundle(java.lang.String baseName, java.lang.ClassLoader loader) throws java.util.MissingResourceException
baseName
- the base name of the resource bundle, a fully qualified class nameloader
- the class loader from which to load the resource bundle
java.util.MissingResourceException
- if no resource bundle for the specified base name can be
foundResourceBundle.getBundle(String)
public static java.util.ResourceBundle getXMLBundle(java.lang.String baseName, java.util.Locale locale, java.lang.ClassLoader loader) throws java.util.MissingResourceException
baseName
- the base name of the resource bundle, a fully qualified class namelocale
- the locale for which a resource bundle is desiredloader
- the class loader from which to load the resource bundle
java.util.MissingResourceException
- if no resource bundle for the specified base name can be
foundResourceBundle.getBundle(String, Locale, ClassLoader)
public java.util.Locale getLocale()
public java.util.Enumeration getKeys()
protected java.lang.Object handleGetObject(java.lang.String key)
public java.lang.String toString()
|
fop 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |