com.icl.saxon

Class ContentEmitter

public class ContentEmitter extends Object implements ContentHandler, LexicalHandler, DTDHandler

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
ContentEmitter()
create a ContentEmitter and initialise variables
Method Summary
voidcharacters(char[] ch, int start, int length)
Callback interface for SAX: not for application use
voidcomment(char[] ch, int start, int length)
Callback interface for SAX (part of LexicalHandler interface): not for application use
voidendCDATA()
voidendDocument()
Callback interface for SAX: not for application use
voidendDTD()
Register the end of the DTD.
voidendElement(String uri, String localname, String rawname)
Callback interface for SAX: not for application use
voidendEntity(String name)
voidendPrefixMapping(String prefix)
Callback interface for SAX: not for application use
voidignorableWhitespace(char[] ch, int start, int length)
Callback interface for SAX: not for application use
voidnotationDecl(String name, String publicId, String systemId)
voidprocessingInstruction(String name, String remainder)
Callback interface for SAX: not for application use
voidsetDocumentLocator(Locator locator)
Callback interface for SAX: not for application use
voidsetEmitter(Emitter e)
voidsetNamePool(NamePool namePool)
voidskippedEntity(String name)
voidstartCDATA()
voidstartDocument()
Callback interface for SAX: not for application use
voidstartDTD(String name, String publicId, String systemId)
Register the start of the DTD.
voidstartElement(String uri, String localname, String rawname, Attributes atts)
Callback interface for SAX: not for application use
voidstartEntity(String name)
voidstartPrefixMapping(String prefix, String uri)
Callback interface for SAX: not for application use
voidunparsedEntityDecl(String name, String publicId, String systemId, String notationName)

Constructor Detail

ContentEmitter

public ContentEmitter()
create a ContentEmitter and initialise variables

Method Detail

characters

public void characters(char[] ch, int start, int length)
Callback interface for SAX: not for application use

comment

public void comment(char[] ch, int start, int length)
Callback interface for SAX (part of LexicalHandler interface): not for application use

endCDATA

public void endCDATA()

endDocument

public void endDocument()
Callback interface for SAX: not for application use

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

endElement

public void endElement(String uri, String localname, String rawname)
Callback interface for SAX: not for application use

endEntity

public void endEntity(String name)

endPrefixMapping

public void endPrefixMapping(String prefix)
Callback interface for SAX: not for application use

ignorableWhitespace

public void ignorableWhitespace(char[] ch, int start, int length)
Callback interface for SAX: not for application use

notationDecl

public void notationDecl(String name, String publicId, String systemId)

processingInstruction

public void processingInstruction(String name, String remainder)
Callback interface for SAX: not for application use

setDocumentLocator

public void setDocumentLocator(Locator locator)
Callback interface for SAX: not for application use

setEmitter

public void setEmitter(Emitter e)

setNamePool

public void setNamePool(NamePool namePool)

skippedEntity

public void skippedEntity(String name)

startCDATA

public void startCDATA()

startDocument

public void startDocument()
Callback interface for SAX: not for application use

startDTD

public void startDTD(String name, String publicId, String systemId)
Register the start of the DTD. Comments in the DTD are skipped because they are not part of the XPath data model

startElement

public void startElement(String uri, String localname, String rawname, Attributes atts)
Callback interface for SAX: not for application use

startEntity

public void startEntity(String name)

startPrefixMapping

public void startPrefixMapping(String prefix, String uri)
Callback interface for SAX: not for application use

unparsedEntityDecl

public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName)