org.jdom.adapters

Class XercesDOMAdapter

public class XercesDOMAdapter extends AbstractDOMAdapter

An adapter for the Apache Xerces DOM parser.

Version: $Revision: 1.18 $, $Date: 2004/02/06 09:28:31 $

Author: Brett McLaughlin Jason Hunter

Method Summary
DocumentcreateDocument()
This creates an empty Document object based on a specific parser implementation.
DocumentgetDocument(InputStream in, boolean validate)
This creates a new {@link Document} from an existing InputStream by letting a DOM parser handle parsing using the supplied stream.

Method Detail

createDocument

public Document createDocument()
This creates an empty Document object based on a specific parser implementation.

Returns: Document - created DOM Document.

Throws: JDOMException when errors occur.

getDocument

public Document getDocument(InputStream in, boolean validate)
This creates a new {@link 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.

Throws: IOException when I/O error occurs. JDOMException when errors occur in parsing.

Copyright © 2004 Jason Hunter, Brett McLaughlin. All Rights Reserved.