|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openeai.OpenEaiObject
org.openeai.xml.XmlDocumentReader
public class 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 |
|---|
getAppName, getDebug, getFromAddr, 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
fileName - String the file name (can be in either URL format or local file system format)validate - boolean flag indicating whether or not this method should also validate the contents
of the document from an XML perspective (true=validate, false=don't validate)
XmlDocumentReaderException
public final org.jdom.Document initializeDocument(java.io.InputStream is,
boolean validate)
throws XmlDocumentReaderException
is - InputStream contents of the XML file that has been stored in the InputStream.validate - boolean flag indicating whether or not this method should also validate the contents
of the document from an XML perspective (true=validate, false=don't validate)
XmlDocumentReaderException
public final org.jdom.Document initializeDocument(java.io.Reader docAsReader,
boolean validate)
throws XmlDocumentReaderException
docAsReader - Reader contents of the XML file that has been stored in the Reader.validate - boolean flag indicating whether or not this method should also validate the contents
of the document from an XML perspective (true=validate, false=don't validate)
XmlDocumentReaderException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||