Package 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
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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
-
-
-
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 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)
-
-
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
-
-