Interface Transformer

  • All Superinterfaces:
    org.xml.sax.ContentHandler
    All Known Implementing Classes:
    DefaultTransformer

    public interface Transformer
    extends org.xml.sax.ContentHandler
    The Transformer interface defines the middle of a rewriter pipeline.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void dispose()
      Dispose the transformer.
      void init​(ProcessingContext context, ProcessingComponentConfiguration config)
      Initialize this component.
      void setContentHandler​(org.xml.sax.ContentHandler handler)
      Set the content handler the transformer should stream to.
      • Methods inherited from interface org.xml.sax.ContentHandler

        characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
    • Method Detail

      • init

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

        void setContentHandler​(org.xml.sax.ContentHandler handler)
        Set the content handler the transformer should stream to.
        Parameters:
        handler - Another transformer or a serializer.
      • dispose

        void dispose()
        Dispose the transformer. This method is always invoked by the rewriter in order to allow the transformer to release any resources etc. After this method has been called the instance is considered unusable.