Class AbstractXMLWritingIFDocumentHandler

java.lang.Object
org.apache.fop.render.intermediate.AbstractIFDocumentHandler
org.apache.fop.render.intermediate.AbstractXMLWritingIFDocumentHandler
All Implemented Interfaces:
IFDocumentHandler
Direct Known Subclasses:
IFSerializer

public abstract class AbstractXMLWritingIFDocumentHandler extends AbstractIFDocumentHandler
Abstract base class for XML-writing IFDocumentHandler implementations.
  • Field Details

  • Constructor Details

    • AbstractXMLWritingIFDocumentHandler

      protected AbstractXMLWritingIFDocumentHandler(IFContext context)
  • Method Details

    • setResult

      public void setResult(Result result) throws IFException
      Sets the JAXP Result object to receive the generated content.
      Parameters:
      result - the JAXP Result object to receive the generated content
      Throws:
      IFException - if an error occurs setting up the output
    • getMainNamespace

      protected abstract String getMainNamespace()
      Returns the main namespace used for generated XML content.
      Returns:
      the main namespace
    • createContentHandler

      protected ContentHandler createContentHandler(Result result) throws IFException
      Creates a ContentHandler for the given JAXP Result instance.
      Parameters:
      result - the JAXP Result instance
      Returns:
      the requested SAX ContentHandler
      Throws:
      IFException - if an error occurs setting up the output