Class ConfigReader

java.lang.Object
net.ionite.docval.config.ConfigReader

public class ConfigReader extends Object
Reads a configuration file, into a ConfigData object.

Author:
Ionite
  • Constructor Details

    • ConfigReader

      public ConfigReader(String fileName)
      Constructor for the configuration file reader
      Parameters:
      fileName - The file to read the configuration from. Must be an XML file that is valid for the configuration xsd.
  • Method Details

    • readConfig

      public ConfigData readConfig() throws ConfigurationError
      Read the configuration file set in the constructor.
      Returns:
      ConfigData The configuration as set in the config file.
      Throws:
      ConfigurationError - if the configuration data could not be parsed.