Package org.jdom2.output.support
Class SAXTarget
- java.lang.Object
-
- org.jdom2.output.support.SAXTarget
-
public final class SAXTarget extends java.lang.ObjectThe target for all SAX notifications in this OuputProcessor- Author:
- Rolf Lear
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSAXTarget.SAXLocatorA 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.ContentHandlergetContentHandler()org.xml.sax.ext.DeclHandlergetDeclHandler()org.xml.sax.DTDHandlergetDTDHandler()org.xml.sax.EntityResolvergetEntityResolver()org.xml.sax.ErrorHandlergetErrorHandler()org.xml.sax.ext.LexicalHandlergetLexicalHandler()SAXTarget.SAXLocatorgetLocator()booleanisDeclareNamespaces()booleanisReportDTDEvents()
-
-
-
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
-
-