com.marsching.flexiparse.parser
Class XMLConfigurationReader

java.lang.Object
  extended by com.marsching.flexiparse.parser.XMLConfigurationReader

public class XMLConfigurationReader
extends Object

Reads a XML configuration file and returns handler configurations.

Author:
Sebastian Marsching

Constructor Summary
XMLConfigurationReader(Parser parser)
          Constructs a new configuration reader that will configure the supplied parser when the readConfiguration(InputSource) method is called.
 
Method Summary
 void readConfiguration(InputSource configurationSource)
          Parses the file provided by the InputSource and configures the parser attached to this reader using the configuration data in the file.
 void readConfiguration(InputSource source, ClassLoader classLoader)
          Parses the file provided by the InputSource and configures the parser attached to this reader using the configuration data in the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLConfigurationReader

public XMLConfigurationReader(Parser parser)
Constructs a new configuration reader that will configure the supplied parser when the readConfiguration(InputSource) method is called.

Parameters:
parser - parser that will be configured by this reader
Method Detail

readConfiguration

public void readConfiguration(InputSource source,
                              ClassLoader classLoader)
                       throws ParserException
Parses the file provided by the InputSource and configures the parser attached to this reader using the configuration data in the file. Uses the supplied class loader to load classes.

Parameters:
source - input source to read configuration from
classLoader - class loader that is used to load handler classes
Throws:
ParserException - if an error occurs while parsing the configuration

readConfiguration

public void readConfiguration(InputSource configurationSource)
                       throws ParserException
Parses the file provided by the InputSource and configures the parser attached to this reader using the configuration data in the file. Uses the context class loader to load classes.

Parameters:
source - input source to read configuration from
Throws:
ParserException - if an error occurs while parsing the configuration


Copyright © 2008-2009. All Rights Reserved.