Package org.jdom.adapters
Class CrimsonDOMAdapter
java.lang.Object
org.jdom.adapters.AbstractDOMAdapter
org.jdom.adapters.CrimsonDOMAdapter
- All Implemented Interfaces:
DOMAdapter
An adapter for the Apache Crimson DOM parser.
- Version:
- $Revision: 1.17 $, $Date: 2007/11/10 05:28:59 $
- Author:
- Jason Hunter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis creates an emptyDocumentobject based on a specific parser implementation.getDocument(InputStream in, boolean validate) This creates a newfrom an existingDocumentInputStreamby letting a DOM parser handle parsing using the supplied stream.Methods inherited from class org.jdom.adapters.AbstractDOMAdapter
createDocument, getDocument, setInternalSubset
-
Constructor Details
-
CrimsonDOMAdapter
public CrimsonDOMAdapter()
-
-
Method Details
-
getDocument
This creates a newfrom an existingDocumentInputStreamby letting a DOM parser handle parsing using the supplied stream.- Specified by:
getDocumentin interfaceDOMAdapter- Specified by:
getDocumentin classAbstractDOMAdapter- Parameters:
in-InputStreamto parse.validate-booleanto indicate if validation should occur.- Returns:
Document- instance ready for use.- Throws:
IOException- when I/O error occurs.JDOMException- when errors occur in parsing.
-
createDocument
This creates an emptyDocumentobject based on a specific parser implementation.- Specified by:
createDocumentin interfaceDOMAdapter- Specified by:
createDocumentin classAbstractDOMAdapter- Returns:
Document- created DOM Document.- Throws:
JDOMException- when errors occur.
-