Main Page   Packages   Namespace List   Class Hierarchy   Compound List   Compound Members  

DOMAdapter Interface Reference

Inheritance diagram for DOMAdapter::

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

Public Methods

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

Detailed Description

DOMAdapter

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

Author:
Brett McLaughlin , Jason Hunter
Version:
$Revison$,
Date:
2002/01/08 09:17:10


Member Function Documentation

Document DOMAdapter::createDocument DocType    doctype
 

This creates an empty Document object based on a specific parser implementation with the given DOCTYPE.

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

Reimplemented in AbstractDOMAdapter.

Document DOMAdapter::createDocument  
 

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

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

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

Document DOMAdapter::getDocument InputStream    in,
boolean    validate
 

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 in JAXPDOMAdapter, AbstractDOMAdapter, OracleV2DOMAdapter, CrimsonDOMAdapter, XercesDOMAdapter, OracleV1DOMAdapter, ProjectXDOMAdapter, and XML4JDOMAdapter.

Document DOMAdapter::getDocument File    filename,
boolean    validate
 

This creates a new Document from a given filename by letting a DOM parser handle parsing from the file.

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 in AbstractDOMAdapter.


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