public class ContentEmitter
extends java.lang.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.
characters
public void characters(ch[] ,
int start,
int length)
Callback interface for SAX: not for application use
comment
public void comment(ch[] ,
int start,
int length)
throws SAXException
Callback interface for SAX (part of LexicalHandler interface): not for application use
endCDATA
public void endCDATA()
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
endDocument
public void endDocument()
throws SAXException
Callback interface for SAX: not for application use
endElement
public void endElement(String uri,
String localname,
String rawname)
throws SAXException
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(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)
throws SAXException
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()
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
startDocument
public void startDocument()
throws SAXException
Callback interface for SAX: not for application use
startElement
public void startElement(String uri,
String localname,
String rawname,
Attributes atts)
throws SAXException
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)
throws SAXException