abstractpublic class ConfigurationXMLReader implements XMLReader(Code)
A base class for "faked" XMLReader classes
that transform a configuration object in a set of SAX parsing events.
This class provides dummy implementations for most of the methods
defined in the XMLReader interface that are not used for this
special purpose. There will be concrete sub classes that process specific
configuration classes.
Dummy implementation of the interface method. No properties are
supported, so this method always returns null.
Parameters: name - the name of the requested property the property value
Parses the acutal configuration object. The passed system ID will be
ignored.
Parameters: systemId - the system ID (ignored) throws: IOException - if no configuration was specified throws: SAXException - if an error occurs during parsing
Parses the acutal configuration object. The passed input source will be
ignored.
Parameters: input - the input source (ignored) throws: IOException - if no configuration was specified throws: SAXException - if an error occurs during parsing
Parses the configuration object and generates SAX events. This is the
main processing method.
throws: IOException - if no configuration has been specified throws: SAXException - if an error occurs during parsing
Processes all keys stored in the actual configuration. This method is
called by parseConfiguration() to start the main parsing
process. parseConfiguration() calls the content handler's
startDocument() and endElement() methods
and cares for exception handling. The remaining actions are left to this
method that must be implemented in a concrete sub class.
throws: IOException - if an IO error occurs throws: SAXException - if a SAX error occurs
Dummy implementation of the interface method. No properties are
supported, so a call of this method just has no effect.
Parameters: name - the property name Parameters: value - the property value