Package com.icl.saxon
Class ContentEmitter
java.lang.Object
com.icl.saxon.ContentEmitter
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,LexicalHandler
- Direct Known Subclasses:
IdentityTransformerHandler
,TemplatesHandlerImpl
,TransformerHandlerImpl
ContentEmitter is a glue class that provides a standard SAX ContentHandler
interface to a Saxon Emitter. To achieve this it needs to map names supplied
as strings to numeric name codes, for which purpose it needs access to a name
pool. The class also performs the function of assembling adjacent text nodes.
- Author:
- Michael H. Kay
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) Callback interface for SAX: not for application usevoid
comment
(char[] ch, int start, int length) Callback interface for SAX (part of LexicalHandler interface): not for application usevoid
endCDATA()
void
Callback interface for SAX: not for application usevoid
endDTD()
Register the end of the DTD.void
endElement
(String uri, String localname, String rawname) Callback interface for SAX: not for application usevoid
void
endPrefixMapping
(String prefix) Callback interface for SAX: not for application usevoid
ignorableWhitespace
(char[] ch, int start, int length) Callback interface for SAX: not for application usevoid
notationDecl
(String name, String publicId, String systemId) void
processingInstruction
(String name, String remainder) Callback interface for SAX: not for application usevoid
setDocumentLocator
(Locator locator) Callback interface for SAX: not for application usevoid
void
setNamePool
(NamePool namePool) void
skippedEntity
(String name) void
void
Callback interface for SAX: not for application usevoid
Register the start of the DTD.void
startElement
(String uri, String localname, String rawname, Attributes atts) Callback interface for SAX: not for application usevoid
startEntity
(String name) void
startPrefixMapping
(String prefix, String uri) Callback interface for SAX: not for application usevoid
unparsedEntityDecl
(String name, String publicId, String systemId, String notationName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
ContentEmitter
public ContentEmitter()create a ContentEmitter and initialise variables
-
-
Method Details
-
setEmitter
-
setNamePool
-
startDocument
Callback interface for SAX: not for application use- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
endDocument
Callback interface for SAX: not for application use- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
setDocumentLocator
Callback interface for SAX: not for application use- Specified by:
setDocumentLocator
in interfaceContentHandler
-
startPrefixMapping
Callback interface for SAX: not for application use- Specified by:
startPrefixMapping
in interfaceContentHandler
-
endPrefixMapping
Callback interface for SAX: not for application use- Specified by:
endPrefixMapping
in interfaceContentHandler
-
startElement
public void startElement(String uri, String localname, String rawname, Attributes atts) throws SAXException Callback interface for SAX: not for application use- Specified by:
startElement
in interfaceContentHandler
- Throws:
SAXException
-
endElement
Callback interface for SAX: not for application use- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) Callback interface for SAX: not for application use- Specified by:
characters
in interfaceContentHandler
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) Callback interface for SAX: not for application use- Specified by:
ignorableWhitespace
in interfaceContentHandler
-
processingInstruction
Callback interface for SAX: not for application use- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
-
comment
Callback interface for SAX (part of LexicalHandler interface): not for application use- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
-
startDTD
Register the start of the DTD. Comments in the DTD are skipped because they are not part of the XPath data model- Specified by:
startDTD
in interfaceLexicalHandler
-
endDTD
public void endDTD()Register the end of the DTD. Comments in the DTD are skipped because they are not part of the XPath data model- Specified by:
endDTD
in interfaceLexicalHandler
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
-
endEntity
- Specified by:
endEntity
in interfaceLexicalHandler
-
startCDATA
public void startCDATA()- Specified by:
startCDATA
in interfaceLexicalHandler
-
endCDATA
public void endCDATA()- Specified by:
endCDATA
in interfaceLexicalHandler
-
notationDecl
- Specified by:
notationDecl
in interfaceDTDHandler
-
unparsedEntityDecl
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException - Specified by:
unparsedEntityDecl
in interfaceDTDHandler
- Throws:
SAXException
-