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:
ContentHandler
,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.TheDOMBuilder
is a utility class that will generate a W3C DOM Document from SAX events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DOMBuilder.Listener
Deprecated.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(SAXTransformerFactory factory)
Deprecated.Construct a new instance of this DOMBuilder.DOMBuilder(SAXTransformerFactory factory, DOMBuilder.Listener listener, 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, Node parentNode)
Deprecated.Construct a new instance of this DOMBuilder.DOMBuilder(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 void
endDocument()
Deprecated.Receive notification of the end of a document.Document
getDocument()
Deprecated.Return the newly built Document.void
recycle()
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(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(Node parentNode)
Deprecated.Constructs a new instance that appends nodes to the given parent node.
Note: You cannot use aListener
when appending to a
Node
, because the notification occurs atendDocument()
which does not happen here.
-
DOMBuilder
public DOMBuilder(DOMBuilder.Listener listener, Node parentNode)
Deprecated.Construct a new instance of this DOMBuilder.
-
DOMBuilder
public DOMBuilder(SAXTransformerFactory factory, DOMBuilder.Listener listener, 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:
recycle
in classAbstractSAXProducer
-
getDocument
public Document getDocument()
Deprecated.Return the newly built Document.
-
endDocument
public void endDocument() throws SAXException
Deprecated.Receive notification of the end of a document.- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classAbstractSAXPipe
- Throws:
SAXException
- If this method was not called appropriately.
-
-