Class ConfigurationParser
java.lang.Object
com.espertech.esper.common.internal.util.ConfigurationParser
Parser for configuration XML.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
doConfigure
(Configuration configuration, InputStream stream, String resourceName) Use the configuration specified in the given input stream.static void
doConfigure
(Configuration configuration, Document doc) Parse the W3C DOM document.static Document
getDocument
(InputStream stream, String resourceName)
-
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 populatestream
- Inputstream to be read fromresourceName
- The name to use in warning/error messages- Throws:
EPException
- is thrown when the configuration could not be parsed
-
getDocument
- Throws:
EPException
-
doConfigure
Parse the W3C DOM document.- Parameters:
configuration
- is the configuration object to populatedoc
- to parse- Throws:
EPException
- to indicate parse errors
-