JDOM
2.0.5

org.jdom2.output.support
Class SAXTarget

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

public final class SAXTarget
extends java.lang.Object

The target for all SAX notifications in this OuputProcessor

Author:
Rolf Lear

Nested Class Summary
static class SAXTarget.SAXLocator
          A locator specific to the SAXOutputter process.
 
Constructor Summary
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
 
Method Summary
 org.xml.sax.ContentHandler getContentHandler()
           
 org.xml.sax.ext.DeclHandler getDeclHandler()
           
 org.xml.sax.DTDHandler getDTDHandler()
           
 org.xml.sax.EntityResolver getEntityResolver()
           
 org.xml.sax.ErrorHandler getErrorHandler()
           
 org.xml.sax.ext.LexicalHandler getLexicalHandler()
           
 SAXTarget.SAXLocator getLocator()
           
 boolean isDeclareNamespaces()
           
 boolean isReportDTDEvents()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

getLocator

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

JDOM
2.0.5

Copyright � 2013 Jason Hunter, Brett McLaughlin. All Rights Reserved.