Class ConfigurationParser

java.lang.Object
com.espertech.esper.common.internal.util.ConfigurationParser

public class ConfigurationParser extends Object
Parser for configuration XML.
  • Constructor Details

    • ConfigurationParser

      public ConfigurationParser()
  • Method Details

    • doConfigure

      public static void doConfigure(Configuration configuration, InputStream stream, String resourceName) throws EPException
      Use the configuration specified in the given input stream.
      Parameters:
      configuration - is the configuration object to populate
      stream - Inputstream to be read from
      resourceName - The name to use in warning/error messages
      Throws:
      EPException - is thrown when the configuration could not be parsed
    • getDocument

      public static Document getDocument(InputStream stream, String resourceName) throws EPException
      Throws:
      EPException
    • doConfigure

      public static void doConfigure(Configuration configuration, Document doc) throws EPException
      Parse the W3C DOM document.
      Parameters:
      configuration - is the configuration object to populate
      doc - to parse
      Throws:
      EPException - to indicate parse errors