Class SAXTarget

java.lang.Object
org.jdom2.output.support.SAXTarget

public final class SAXTarget extends Object
The target for all SAX notifications in this OuputProcessor
Author:
Rolf Lear
  • Constructor Details

    • SAXTarget

      public SAXTarget(ContentHandler contentHandler, ErrorHandler errorHandler, DTDHandler dtdHandler, EntityResolver entityResolver, LexicalHandler lexicalHandler, DeclHandler declHandler, boolean declareNamespaces, boolean reportDtdEvents, String publicID, 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 Details

    • getContentHandler

      public ContentHandler getContentHandler()
      Returns:
      The target ContentHandler
    • getErrorHandler

      public ErrorHandler getErrorHandler()
      Returns:
      The target ErrorHandler
    • getDTDHandler

      public DTDHandler getDTDHandler()
      Returns:
      The target DTDHandler
    • getEntityResolver

      public EntityResolver getEntityResolver()
      Returns:
      The target EntityResolver
    • getLexicalHandler

      public LexicalHandler getLexicalHandler()
      Returns:
      The target LexicalHandler
    • getDeclHandler

      public 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
    • getLocator

      public SAXTarget.SAXLocator getLocator()
      Returns:
      the Locator used for this Output