com.blackbear.flatworm
Class ConfigurationReader

java.lang.Object
  extended by com.blackbear.flatworm.ConfigurationReader

public class ConfigurationReader
extends java.lang.Object

The ConfigurationReader class is used to initialize Flatworm with an XML configuration file which describes the format and conversion options to be applied to the input file to produce output beans.


Constructor Summary
ConfigurationReader()
           
 
Method Summary
 FileFormat loadConfigurationFile(java.io.InputStream in)
           
 FileFormat loadConfigurationFile(java.lang.String xmlFile)
          loadConfigurationFile takes an XML configuration file, and returns a FileFormat object, which can be used to parse an input file into beans.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationReader

public ConfigurationReader()
Method Detail

loadConfigurationFile

public FileFormat loadConfigurationFile(java.lang.String xmlFile)
                                 throws FlatwormUnsetFieldValueException,
                                        FlatwormConfigurationValueException
loadConfigurationFile takes an XML configuration file, and returns a FileFormat object, which can be used to parse an input file into beans.

Parameters:
xmlFile - An XML file which contains a valid Flatworm configuration
Returns:
A FileFormat object which can parse the specified format.
Throws:
FlatwormUnsetFieldValueException - If a required parameter of a tag is not set.
FlatwormConfigurationValueException - If the file contains invalid syntax.

loadConfigurationFile

public FileFormat loadConfigurationFile(java.io.InputStream in)
                                 throws FlatwormUnsetFieldValueException,
                                        FlatwormConfigurationValueException
Throws:
FlatwormUnsetFieldValueException
FlatwormConfigurationValueException