Package org.apache.cocoon.xml.dom
Class DOMBuilder
- java.lang.Object
-
- org.apache.cocoon.xml.sax.AbstractSAXProducer
-
- org.apache.cocoon.xml.sax.AbstractSAXPipe
-
- org.apache.cocoon.xml.dom.DOMBuilder
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler,org.xml.sax.ext.LexicalHandler
@Deprecated(since="2022-01-27") public class DOMBuilder extends AbstractSAXPipe
Deprecated.This API is deprecated, migrate code to the XML APIs provided by the JDK.TheDOMBuilderis a utility class that will generate a W3C DOM Document from SAX events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDOMBuilder.ListenerDeprecated.This API is deprecated, migrate code to the XML APIs provided by the JDK.
-
Constructor Summary
Constructors Constructor Description DOMBuilder()Deprecated.Construct a new instance of this DOMBuilder.DOMBuilder(javax.xml.transform.sax.SAXTransformerFactory factory)Deprecated.Construct a new instance of this DOMBuilder.DOMBuilder(javax.xml.transform.sax.SAXTransformerFactory factory, DOMBuilder.Listener listener, org.w3c.dom.Node parentNode)Deprecated.Construct a new instance of this DOMBuilder.DOMBuilder(DOMBuilder.Listener listener)Deprecated.Construct a new instance of this DOMBuilder.DOMBuilder(DOMBuilder.Listener listener, org.w3c.dom.Node parentNode)Deprecated.Construct a new instance of this DOMBuilder.DOMBuilder(org.w3c.dom.Node parentNode)Deprecated.Constructs a new instance that appends nodes to the given parent node.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidendDocument()Deprecated.Receive notification of the end of a document.org.w3c.dom.DocumentgetDocument()Deprecated.Return the newly built Document.voidrecycle()Deprecated.Recycle this builder, prepare for re-use.-
Methods inherited from class org.apache.cocoon.xml.sax.AbstractSAXPipe
characters, comment, endCDATA, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping
-
Methods inherited from class org.apache.cocoon.xml.sax.AbstractSAXProducer
setContentHandler
-
-
-
-
Constructor Detail
-
DOMBuilder
public DOMBuilder()
Deprecated.Construct a new instance of this DOMBuilder.
-
DOMBuilder
public DOMBuilder(javax.xml.transform.sax.SAXTransformerFactory factory)
Deprecated.Construct a new instance of this DOMBuilder.
-
DOMBuilder
public DOMBuilder(DOMBuilder.Listener listener)
Deprecated.Construct a new instance of this DOMBuilder.
-
DOMBuilder
public DOMBuilder(org.w3c.dom.Node parentNode)
Deprecated.Constructs a new instance that appends nodes to the given parent node.
Note: You cannot use aListenerwhen appending to aNode, because the notification occurs atendDocument()which does not happen here.
-
DOMBuilder
public DOMBuilder(DOMBuilder.Listener listener, org.w3c.dom.Node parentNode)
Deprecated.Construct a new instance of this DOMBuilder.
-
DOMBuilder
public DOMBuilder(javax.xml.transform.sax.SAXTransformerFactory factory, DOMBuilder.Listener listener, org.w3c.dom.Node parentNode)Deprecated.Construct a new instance of this DOMBuilder.
-
-
Method Detail
-
recycle
public void recycle()
Deprecated.Recycle this builder, prepare for re-use.- Overrides:
recyclein classAbstractSAXProducer
-
getDocument
public org.w3c.dom.Document getDocument()
Deprecated.Return the newly built Document.
-
endDocument
public void endDocument() throws org.xml.sax.SAXExceptionDeprecated.Receive notification of the end of a document.- Specified by:
endDocumentin interfaceorg.xml.sax.ContentHandler- Overrides:
endDocumentin classAbstractSAXPipe- Throws:
org.xml.sax.SAXException- If this method was not called appropriately.
-
-