Package org.jdom.adapters
Class CrimsonDOMAdapter
- java.lang.Object
-
- org.jdom.adapters.AbstractDOMAdapter
-
- org.jdom.adapters.CrimsonDOMAdapter
-
- All Implemented Interfaces:
DOMAdapter
public class CrimsonDOMAdapter extends AbstractDOMAdapter
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 Constructor Description CrimsonDOMAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.DocumentcreateDocument()This creates an emptyDocumentobject based on a specific parser implementation.org.w3c.dom.DocumentgetDocument(java.io.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
-
-
-
-
Method Detail
-
getDocument
public org.w3c.dom.Document getDocument(java.io.InputStream in, boolean validate) throws java.io.IOException, JDOMExceptionThis 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:
java.io.IOException- when I/O error occurs.JDOMException- when errors occur in parsing.
-
createDocument
public org.w3c.dom.Document createDocument() throws JDOMExceptionThis 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.
-
-