Package org.apache.cocoon.xml.sax
Class AbstractSAXProducer
- java.lang.Object
-
- org.apache.cocoon.xml.sax.AbstractSAXProducer
-
- Direct Known Subclasses:
AbstractSAXPipe,DOMStreamer.DefaultDOMStreamer,DOMStreamer.NamespaceNormalizingDOMStreamer
public abstract class AbstractSAXProducer extends Object
This abstract class provides utility methods to implement a producer for SAX events..
-
-
Constructor Summary
Constructors Constructor Description AbstractSAXProducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrecycle()Recycle the producer by removing references, and resetting handlers to null (empty) implementations.voidsetContentHandler(ContentHandler handler)Set theContentHandlerthat will receive XML data.
-
-
-
Method Detail
-
setContentHandler
public void setContentHandler(ContentHandler handler)
Set theContentHandlerthat will receive XML data.Subclasses may retrieve this
ContentHandlerinstance accessing the protectedsuper.contentHandlerfield.- Parameters:
handler- content handler, should never be null.
-
recycle
public void recycle()
Recycle the producer by removing references, and resetting handlers to null (empty) implementations.
-
-