|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.openeai.OpenEaiObject
|
+--org.openeai.xml.XmlDocumentReader
This class is used to create a JDOM Document object from the contents of an XML file that can be stored in a file (on a web server or local file system) or passed in as an in-memory representation of that file (Reader, InputStream).
| Field Summary |
| Fields inherited from class org.openeai.OpenEaiObject |
logger |
| Constructor Summary | |
XmlDocumentReader()
Constructor |
|
| Method Summary | |
org.jdom.Document |
initializeDocument(java.io.InputStream is,
boolean validate)
Creates a JDOM Document from the supplied InputStream. |
org.jdom.Document |
initializeDocument(java.io.Reader docAsReader,
boolean validate)
Creates a JDOM Document from the supplied Reader. |
org.jdom.Document |
initializeDocument(java.lang.String fileName,
boolean validate)
Creates a JDOM Document from the specified XML file name. |
| Methods inherited from class org.openeai.OpenEaiObject |
addLog4jProperty, getAppName, getDebug, getFromAddr, getLog4jProperties, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XmlDocumentReader()
| Method Detail |
public final org.jdom.Document initializeDocument(java.lang.String fileName,
boolean validate)
throws XmlDocumentReaderException
Example 1: http://www.somexmlserver.com/xml/AnXmlFile.xml
Example 2: file://localhost/xmlfiles/AnXmlFile.xml
Example 3: c:\xmlfiles\AnXmlFile.xml
Example 4: /opt/xmlfiles/AnXmlFile.xml
XmlDocumentReaderException
public final org.jdom.Document initializeDocument(java.io.InputStream is,
boolean validate)
throws XmlDocumentReaderException
XmlDocumentReaderException
public final org.jdom.Document initializeDocument(java.io.Reader docAsReader,
boolean validate)
throws XmlDocumentReaderException
XmlDocumentReaderException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||