Inheritance diagram for org::jdom::adapters::AbstractDOMAdapter:
Public Member Functions | |
Document | getDocument (File filename, boolean validate) throws IOException, JDOMException |
abstract Document | getDocument (InputStream in, boolean validate) throws IOException, JDOMException |
abstract Document | createDocument () throws JDOMException |
Document | createDocument (DocType doctype) throws JDOMException |
Protected Member Functions | |
void | setInternalSubset (DocumentType dt, String s) |
AbstractDOMAdapter
.
This class defines wrapper behavior for obtaining a DOM Document
object from a DOM parser.
Document org::jdom::adapters::AbstractDOMAdapter::getDocument | ( | File | filename, | |
boolean | validate | |||
) | throws IOException, JDOMException [inline] |
This creates a new Document
from an existing InputStream
by letting a DOM parser handle parsing using the supplied stream.
filename | file to parse. | |
validate | boolean to indicate if validation should occur. |
Document
- instance ready for use. IOException | when I/O error occurs. | |
JDOMException | when errors occur in parsing. |
Implements org::jdom::adapters::DOMAdapter.
abstract Document org::jdom::adapters::AbstractDOMAdapter::getDocument | ( | InputStream | in, | |
boolean | validate | |||
) | throws IOException, JDOMException [pure virtual] |
This creates a new Document
from an existing InputStream
by letting a DOM parser handle parsing using the supplied stream.
in | InputStream to parse. | |
validate | boolean to indicate if validation should occur. |
Document
- instance ready for use. IOException | when I/O error occurs. | |
JDOMException | when errors occur in parsing. |
Implements org::jdom::adapters::DOMAdapter.
Implemented in org::jdom::adapters::CrimsonDOMAdapter, org::jdom::adapters::JAXPDOMAdapter, org::jdom::adapters::OracleV1DOMAdapter, org::jdom::adapters::OracleV2DOMAdapter, org::jdom::adapters::XercesDOMAdapter, and org::jdom::adapters::XML4JDOMAdapter.
abstract Document org::jdom::adapters::AbstractDOMAdapter::createDocument | ( | ) | throws JDOMException [pure virtual] |
This creates an empty Document
object based on a specific parser implementation.
JDOMException | when errors occur. |
Implements org::jdom::adapters::DOMAdapter.
Implemented in org::jdom::adapters::CrimsonDOMAdapter, org::jdom::adapters::JAXPDOMAdapter, org::jdom::adapters::OracleV1DOMAdapter, org::jdom::adapters::OracleV2DOMAdapter, org::jdom::adapters::XercesDOMAdapter, and org::jdom::adapters::XML4JDOMAdapter.
Document org::jdom::adapters::AbstractDOMAdapter::createDocument | ( | DocType | doctype | ) | throws JDOMException [inline] |
This creates an empty Document
object based on a specific parser implementation with the given DOCTYPE. If the doctype parameter is null, the behavior is the same as calling createDocument()
.
doctype | Initial DocType of the document. |
JDOMException | when errors occur. |
Implements org::jdom::adapters::DOMAdapter.
void org::jdom::adapters::AbstractDOMAdapter::setInternalSubset | ( | DocumentType | dt, | |
String | s | |||
) | [inline, protected] |
This attempts to change the DocumentType to have the given internal DTD subset value. This is not a standard ability in DOM, so it's only available with some parsers. Subclasses can alter the mechanism by which the attempt is made to set the value.
dt | DocumentType to be altered | |
s | String to use as the internal DTD subset |