|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esperio.db.config.ConfigurationDBAdapterParser
public class ConfigurationDBAdapterParser
Constructor Summary | |
---|---|
ConfigurationDBAdapterParser()
|
Method Summary | |
---|---|
protected static void |
doConfigure(ConfigurationDBAdapter configuration,
org.w3c.dom.Document doc)
Parse the W3C DOM document. |
protected static void |
doConfigure(ConfigurationDBAdapter configuration,
java.io.InputStream stream,
java.lang.String resourceName)
Use the configuration specified in the given input stream. |
protected static org.w3c.dom.Document |
getDocument(java.io.InputStream stream,
java.lang.String resourceName)
Returns the document. |
protected static java.io.InputStream |
getResourceAsStream(java.lang.String resource)
Returns an input stream from an application resource in the classpath. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationDBAdapterParser()
Method Detail |
---|
protected static void doConfigure(ConfigurationDBAdapter configuration, java.io.InputStream stream, java.lang.String resourceName) throws java.lang.RuntimeException
configuration
- is the configuration object to populatestream
- Inputstream to be read fromresourceName
- The name to use in warning/error messages
java.lang.RuntimeException
- is thrown when the configuration could not be parsedprotected static org.w3c.dom.Document getDocument(java.io.InputStream stream, java.lang.String resourceName) throws java.lang.RuntimeException
stream
- to readresourceName
- resource in stream
java.lang.RuntimeException
- if the document could not be loaded or parsedprotected static void doConfigure(ConfigurationDBAdapter configuration, org.w3c.dom.Document doc) throws java.lang.RuntimeException
configuration
- is the configuration object to populatedoc
- to parse
java.lang.RuntimeException
- to indicate parse errorsprotected static java.io.InputStream getResourceAsStream(java.lang.String resource)
resource
- to get input stream for
|
© 2006-2016 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |