Interface Generator

  • All Known Implementing Classes:
    HtmlParser

    @Deprecated
    public interface Generator
    Deprecated.
    Use the Apache Sling Rewriter Module (org.apache.sling.rewriter.Generator)
    The Generator interface defines the start of a rewriter pipeline.
    • Method Detail

      • init

        void init​(ProcessingContext context,
                  ProcessingComponentConfiguration config)
           throws java.io.IOException
        Deprecated.
        Initialize this component.
        Parameters:
        context - The invocation context.
        config - The configuration for this component.
        Throws:
        java.io.IOException - IOException
      • setContentHandler

        void setContentHandler​(org.xml.sax.ContentHandler handler)
        Deprecated.
        Set the content handler the generator should stream to.
        Parameters:
        handler - A transformer or serializer.
      • getWriter

        java.io.PrintWriter getWriter()
        Deprecated.
        Get the writer to write the output to.
        Returns:
        A print writer.
      • finished

        void finished()
               throws java.io.IOException,
                      org.xml.sax.SAXException
        Deprecated.
        Notify the generator that parsing is finished.
        Throws:
        java.io.IOException - IOException
        org.xml.sax.SAXException - SAXException