org.jdom2.output.support
Class SAXTarget
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 ContentHandlererrorHandler
- The ErrorHandlerdtdHandler
- The DTDHandlerentityResolver
- The EntityResolverlexicalHandler
- The LexicalHandlerdeclHandler
- The DeclHandlerdeclareNamespaces
- Whether to declare NamespacesreportDtdEvents
- Whether to report DTD EventspublicID
- The public ID (null if none)systemID
- The System ID (null if none)
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
Copyright © 2012 Jason Hunter, Brett McLaughlin. All Rights Reserved.