|
|||||||||
| Home >> All >> org >> jdom >> [ adapters overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jdom.adapters
Interface DOMAdapter

- All Known Implementing Classes:
- AbstractDOMAdapter
- public interface DOMAdapter
Defines a standard set of adapter methods for interfacing with a DOM parser and obtaining a DOM org.w3c.dom.Document object. Implementing classes map these calls to DOM parser-specific calls, allowing any third-party parser to be used with JDOM.
- Version:
- $Revision: 1.21 $, $Date: 2004/02/06 09:28:31 $
| Method Summary | |
org.w3c.dom.Document |
createDocument()
This creates an empty Document object based
on a specific parser implementation. |
org.w3c.dom.Document |
createDocument(org.jdom.DocType doctype)
This creates an empty Document object based
on a specific parser implementation with the given DOCTYPE. |
org.w3c.dom.Document |
getDocument(java.io.File filename,
boolean validate)
This creates a new Document from a
given filename by letting a DOM parser handle parsing from the file. |
org.w3c.dom.Document |
getDocument(java.io.InputStream in,
boolean validate)
This creates a new Document from an
existing InputStream by letting a DOM
parser handle parsing using the supplied stream. |
| Method Detail |
getDocument
public org.w3c.dom.Document getDocument(java.io.File filename, boolean validate) throws java.io.IOException, org.jdom.JDOMException
- This creates a new
Documentfrom a given filename by letting a DOM parser handle parsing from the file.
getDocument
public org.w3c.dom.Document getDocument(java.io.InputStream in, boolean validate) throws java.io.IOException, org.jdom.JDOMException
- This creates a new
Documentfrom an existingInputStreamby letting a DOM parser handle parsing using the supplied stream.
createDocument
public org.w3c.dom.Document createDocument() throws org.jdom.JDOMException
- This creates an empty
Documentobject based on a specific parser implementation.
createDocument
public org.w3c.dom.Document createDocument(org.jdom.DocType doctype) throws org.jdom.JDOMException
- This creates an empty
Documentobject based on a specific parser implementation with the given DOCTYPE.
|
|||||||||
| Home >> All >> org >> jdom >> [ adapters overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC