Class AbstractSAXProducer

java.lang.Object
org.apache.cocoon.xml.sax.AbstractSAXProducer
Direct Known Subclasses:
AbstractSAXPipe, DOMStreamer.DefaultDOMStreamer, DOMStreamer.NamespaceNormalizingDOMStreamer

@Deprecated(since="2022-01-27") public abstract class AbstractSAXProducer extends Object
Deprecated.
This API is deprecated, migrate code to the XML APIs provided by the JDK.
This abstract class provides utility methods to implement a producer for SAX events..
  • Constructor Details

    • AbstractSAXProducer

      public AbstractSAXProducer()
      Deprecated.
  • Method Details

    • setContentHandler

      public void setContentHandler(ContentHandler handler)
      Deprecated.
      Set the ContentHandler that will receive XML data.

      Subclasses may retrieve this ContentHandler instance accessing the protected super.contentHandler field.

      Parameters:
      handler - content handler, should never be null.
    • recycle

      public void recycle()
      Deprecated.
      Recycle the producer by removing references, and resetting handlers to null (empty) implementations.