public class ConfigurationParser extends Object
Constructor and Description |
---|
ConfigurationParser() |
Modifier and Type | Method and Description |
---|---|
static void |
doConfigure(Configuration configuration,
Document doc)
Parse the W3C DOM document.
|
static void |
doConfigure(Configuration configuration,
InputStream stream,
String resourceName)
Use the configuration specified in the given input stream.
|
static Document |
getDocument(InputStream stream,
String resourceName) |
public static void doConfigure(Configuration configuration, InputStream stream, String resourceName) throws EPException
configuration
- is the configuration object to populatestream
- Inputstream to be read fromresourceName
- The name to use in warning/error messagesEPException
- is thrown when the configuration could not be parsedpublic static Document getDocument(InputStream stream, String resourceName) throws EPException
EPException
public static void doConfigure(Configuration configuration, Document doc) throws EPException
configuration
- is the configuration object to populatedoc
- to parseEPException
- to indicate parse errorsCopyright © 2005–2018. All rights reserved.