Main Page   Packages   Namespace List   Class Hierarchy   Compound List   Compound Members  

AbstractDOMAdapter Class Reference

Inheritance diagram for AbstractDOMAdapter::

DOMAdapter CrimsonDOMAdapter JAXPDOMAdapter OracleV1DOMAdapter OracleV2DOMAdapter ProjectXDOMAdapter XercesDOMAdapter XML4JDOMAdapter List of all members.

Public Methods

Document getDocument (File filename, boolean validate) throws Exception
abstract Document getDocument (InputStream in, boolean validate) throws Exception
abstract Document createDocument () throws Exception
Document createDocument (DocType doctype) throws Exception

Protected Methods

void setInternalSubset (DocumentType dt, String s)

Detailed Description

AbstractDOMAdapter

This class defines wrapper behavior for obtaining a DOM Document object from a DOM parser.

Author:
Brett McLaughlin , Jason Hunter
Version:
Revision:
1.13
,
Date:
2002/02/14 09:16:38


Member Function Documentation

Document AbstractDOMAdapter::createDocument DocType    doctype [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().

Parameters:
doctype  Initial DocType of the document.
Returns:
Document - created DOM Document.
Exceptions:
Exception  when errors occur.

Reimplemented from DOMAdapter.

abstract Document AbstractDOMAdapter::createDocument   [pure virtual]
 

This creates an empty Document object based on a specific parser implementation.

Returns:
Document - created DOM Document.
Exceptions:
Exception  when errors occur.

Reimplemented from DOMAdapter.

Reimplemented in JAXPDOMAdapter, OracleV2DOMAdapter, CrimsonDOMAdapter, XercesDOMAdapter, OracleV1DOMAdapter, ProjectXDOMAdapter, and XML4JDOMAdapter.

abstract Document AbstractDOMAdapter::getDocument InputStream    in,
boolean    validate
[pure virtual]
 

This creates a new Document from an existing InputStream by letting a DOM parser handle parsing using the supplied stream.

Parameters:
in  InputStream to parse.
validate  boolean to indicate if validation should occur.
Returns:
Document - instance ready for use.
Exceptions:
Exception  when errors occur in parsing.

Reimplemented from DOMAdapter.

Reimplemented in JAXPDOMAdapter, OracleV2DOMAdapter, CrimsonDOMAdapter, XercesDOMAdapter, OracleV1DOMAdapter, ProjectXDOMAdapter, and XML4JDOMAdapter.

Document AbstractDOMAdapter::getDocument File    filename,
boolean    validate
[inline]
 

This creates a new Document from an existing InputStream by letting a DOM parser handle parsing using the supplied stream.

Parameters:
filename  file to parse.
validate  boolean to indicate if validation should occur.
Returns:
Document - instance ready for use.
Exceptions:
Exception  when errors occur in parsing.

Reimplemented from DOMAdapter.

void 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.

Parameters:
dt  DocumentType to be altered
s  String to use as the internal DTD subset


The documentation for this class was generated from the following file:
Generated on Sat Mar 30 18:53:02 2002 for JDOM by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001