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.
This API is deprecated, migrate code to the XML APIs provided by the JDK.
The
DOMBuilder is a utility class that will generate a W3C
DOM Document from SAX events.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated.This API is deprecated, migrate code to the XML APIs provided by the JDK. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.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
Modifier and TypeMethodDescriptionvoidDeprecated.Receive notification of the end of a document.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, startPrefixMappingMethods inherited from class org.apache.cocoon.xml.sax.AbstractSAXProducer
setContentHandlerMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
DOMBuilder
public DOMBuilder()Deprecated.Construct a new instance of this DOMBuilder. -
DOMBuilder
Deprecated.Construct a new instance of this DOMBuilder. -
DOMBuilder
Deprecated.Construct a new instance of this DOMBuilder. -
DOMBuilder
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
Deprecated.Construct a new instance of this DOMBuilder. -
DOMBuilder
Deprecated.Construct a new instance of this DOMBuilder.
-
-
Method Details
-
recycle
public void recycle()Deprecated.Recycle this builder, prepare for re-use.- Overrides:
recyclein classAbstractSAXProducer
-
getDocument
Deprecated.Return the newly built Document. -
endDocument
Deprecated.Receive notification of the end of a document.- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classAbstractSAXPipe- Throws:
SAXException- If this method was not called appropriately.
-