Class SAXTarget


  • public final class SAXTarget
    extends java.lang.Object
    The target for all SAX notifications in this OuputProcessor
    Author:
    Rolf Lear
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SAXTarget.SAXLocator
      A locator specific to the SAXOutputter process.
    • Constructor Summary

      Constructors 
      Constructor Description
      SAXTarget​(org.xml.sax.ContentHandler contentHandler, org.xml.sax.ErrorHandler errorHandler, org.xml.sax.DTDHandler dtdHandler, org.xml.sax.EntityResolver entityResolver, org.xml.sax.ext.LexicalHandler lexicalHandler, org.xml.sax.ext.DeclHandler declHandler, boolean declareNamespaces, boolean reportDtdEvents, java.lang.String publicID, java.lang.String systemID)
      Create the collection of handlers for a SAXOutputProcessor
    • Constructor Detail

      • SAXTarget

        public SAXTarget​(org.xml.sax.ContentHandler contentHandler,
                         org.xml.sax.ErrorHandler errorHandler,
                         org.xml.sax.DTDHandler dtdHandler,
                         org.xml.sax.EntityResolver entityResolver,
                         org.xml.sax.ext.LexicalHandler lexicalHandler,
                         org.xml.sax.ext.DeclHandler declHandler,
                         boolean declareNamespaces,
                         boolean reportDtdEvents,
                         java.lang.String publicID,
                         java.lang.String systemID)
        Create the collection of handlers for a SAXOutputProcessor
        Parameters:
        contentHandler - The ContentHandler
        errorHandler - The ErrorHandler
        dtdHandler - The DTDHandler
        entityResolver - The EntityResolver
        lexicalHandler - The LexicalHandler
        declHandler - The DeclHandler
        declareNamespaces - Whether to declare Namespaces
        reportDtdEvents - Whether to report DTD Events
        publicID - The public ID (null if none)
        systemID - The System ID (null if none)
    • Method Detail

      • getContentHandler

        public org.xml.sax.ContentHandler getContentHandler()
        Returns:
        The target ContentHandler
      • getErrorHandler

        public org.xml.sax.ErrorHandler getErrorHandler()
        Returns:
        The target ErrorHandler
      • getDTDHandler

        public org.xml.sax.DTDHandler getDTDHandler()
        Returns:
        The target DTDHandler
      • getEntityResolver

        public org.xml.sax.EntityResolver getEntityResolver()
        Returns:
        The target EntityResolver
      • getLexicalHandler

        public org.xml.sax.ext.LexicalHandler getLexicalHandler()
        Returns:
        The target LexicalHandler
      • getDeclHandler

        public org.xml.sax.ext.DeclHandler getDeclHandler()
        Returns:
        The target DeclHandler
      • isDeclareNamespaces

        public boolean isDeclareNamespaces()
        Returns:
        Whether to declare Namespaces
      • isReportDTDEvents

        public boolean isReportDTDEvents()
        Returns:
        Whether to report DTD Events