Package org.jdom2.output.support
Class SAXTarget
java.lang.Object
org.jdom2.output.support.SAXTarget
The target for all SAX notifications in this OuputProcessor
- Author:
- Rolf Lear
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A locator specific to the SAXOutputter process. -
Constructor Summary
ConstructorsConstructorDescriptionSAXTarget
(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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
-
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 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 Details
-
getContentHandler
- Returns:
- The target ContentHandler
-
getErrorHandler
- Returns:
- The target ErrorHandler
-
getDTDHandler
- Returns:
- The target DTDHandler
-
getEntityResolver
- Returns:
- The target EntityResolver
-
getLexicalHandler
- Returns:
- The target LexicalHandler
-
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
- Returns:
- the Locator used for this Output
-