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 TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) Callback interface for SAX: not for application usevoidcomment(char[] ch, int start, int length) Callback interface for SAX (part of LexicalHandler interface): not for application usevoidendCDATA()voidCallback interface for SAX: not for application usevoidendDTD()Register the end of the DTD.voidendElement(String uri, String localname, String rawname) Callback interface for SAX: not for application usevoidvoidendPrefixMapping(String prefix) Callback interface for SAX: not for application usevoidignorableWhitespace(char[] ch, int start, int length) Callback interface for SAX: not for application usevoidnotationDecl(String name, String publicId, String systemId) ///////////////////////////////////////////////////////////////////////////voidprocessingInstruction(String name, String remainder) Callback interface for SAX: not for application usevoidsetDocumentLocator(Locator locator) Callback interface for SAX: not for application usevoidvoidsetNamePool(NamePool namePool) voidskippedEntity(String name) voidvoidCallback interface for SAX: not for application usevoidRegister the start of the DTD.voidstartElement(String uri, String localname, String rawname, Attributes atts) Callback interface for SAX: not for application usevoidstartEntity(String name) voidstartPrefixMapping(String prefix, String uri) Callback interface for SAX: not for application usevoidunparsedEntityDecl(String name, String publicId, String systemId, String notationName) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
endDocument
Callback interface for SAX: not for application use- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
Callback interface for SAX: not for application use- Specified by:
setDocumentLocatorin interfaceContentHandler
-
startPrefixMapping
Callback interface for SAX: not for application use- Specified by:
startPrefixMappingin interfaceContentHandler
-
endPrefixMapping
Callback interface for SAX: not for application use- Specified by:
endPrefixMappingin 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:
startElementin interfaceContentHandler- Throws:
SAXException
-
endElement
Callback interface for SAX: not for application use- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) Callback interface for SAX: not for application use- Specified by:
charactersin interfaceContentHandler
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) Callback interface for SAX: not for application use- Specified by:
ignorableWhitespacein interfaceContentHandler
-
processingInstruction
Callback interface for SAX: not for application use- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
comment
Callback interface for SAX (part of LexicalHandler interface): not for application use- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
skippedEntity
- Specified by:
skippedEntityin 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:
startDTDin 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:
endDTDin interfaceLexicalHandler
-
startEntity
- Specified by:
startEntityin interfaceLexicalHandler
-
endEntity
- Specified by:
endEntityin interfaceLexicalHandler
-
startCDATA
public void startCDATA()- Specified by:
startCDATAin interfaceLexicalHandler
-
endCDATA
public void endCDATA()- Specified by:
endCDATAin interfaceLexicalHandler
-
notationDecl
///////////////////////////////////////////////////////////////////////////- Specified by:
notationDeclin interfaceDTDHandler
-
unparsedEntityDecl
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException - Specified by:
unparsedEntityDeclin interfaceDTDHandler- Throws:
SAXException
-