public class TSAXDispatchingLexicalHandler
extends java.lang.Object
implements org.xml.sax.ext.LexicalHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_ID
The property id according to which a concrete LexicalHandler instance is set on
an XMLReader instance.
|
Constructor and Description |
---|
TSAXDispatchingLexicalHandler(TSAXDispatchingDefaultHandler dispatchingDefaultHandler,
org.xml.sax.ext.LexicalHandler infoLexicalHandler,
org.xml.sax.ext.LexicalHandler queryLexicalHandler)
Initialzes the handler with the given dispatching default handler, the information lexical hander
and the query content based lexical handler.
|
Modifier and Type | Method and Description |
---|---|
void |
comment(char[] ch,
int start,
int length)
Report an XML comment anywhere in the document.
|
void |
endCDATA()
Report the end of a CDATA section.
|
void |
endDTD()
Report the end of DTD declarations.
|
void |
endEntity(java.lang.String name)
Report the end of an entity.
|
void |
setInfoLexicalHandler(org.xml.sax.ext.LexicalHandler infoLexicalHandler)
Sets the information specific lexical handler to which events might be dispatched.
|
void |
setQueryLexicalHandler(org.xml.sax.ext.LexicalHandler queryLexicalHandler)
Sets the query content specific decl handler to which events might be dispatched.
|
void |
startCDATA()
Report the start of a CDATA section.
|
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Report the start of DTD declarations, if any.
|
void |
startEntity(java.lang.String name)
Report the beginning of an entity in content.
|
public static final java.lang.String PROPERTY_ID
xmlReader.setProperty( TSAXWritingLexicalHandler.PROPERTY_ID , lexicalHandler );
public TSAXDispatchingLexicalHandler(TSAXDispatchingDefaultHandler dispatchingDefaultHandler, org.xml.sax.ext.LexicalHandler infoLexicalHandler, org.xml.sax.ext.LexicalHandler queryLexicalHandler)
public void setInfoLexicalHandler(org.xml.sax.ext.LexicalHandler infoLexicalHandler)
public void setQueryLexicalHandler(org.xml.sax.ext.LexicalHandler queryLexicalHandler)
public void comment(char[] ch, int start, int length) throws org.xml.sax.SAXException
comment
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startCDATA() throws org.xml.sax.SAXException
startCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endCDATA() throws org.xml.sax.SAXException
endCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
startDTD
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endDTD() throws org.xml.sax.SAXException
endDTD
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endEntity(java.lang.String name) throws org.xml.sax.SAXException
endEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startEntity(java.lang.String name) throws org.xml.sax.SAXException
startEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
Copyright (c) 2017 Software AG. All Rights Reserved.