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 java.lang.ObjectThis 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(org.xml.sax.ContentHandler handler)Set theContentHandlerthat will receive XML data.
-
-
-
Method Detail
-
setContentHandler
public void setContentHandler(org.xml.sax.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.
-
-