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
Method Summary |
void | characters(char[] ch, int start, int length)
Callback interface for SAX: not for application use |
void | comment(char[] ch, int start, int length)
Callback interface for SAX (part of LexicalHandler interface): not for application use |
void | endCDATA() |
void | endDocument()
Callback interface for SAX: not for application use |
void | endDTD()
Register the end of the DTD. |
void | endElement(String uri, String localname, String rawname)
Callback interface for SAX: not for application use |
void | endEntity(String name) |
void | endPrefixMapping(String prefix)
Callback interface for SAX: not for application use |
void | ignorableWhitespace(char[] ch, int start, int length)
Callback interface for SAX: not for application use |
void | notationDecl(String name, String publicId, String systemId) |
void | processingInstruction(String name, String remainder)
Callback interface for SAX: not for application use
|
void | setDocumentLocator(Locator locator)
Callback interface for SAX: not for application use |
void | setEmitter(Emitter e) |
void | setNamePool(NamePool namePool) |
void | skippedEntity(String name) |
void | startCDATA() |
void | startDocument()
Callback interface for SAX: not for application use |
void | startDTD(String name, String publicId, String systemId)
Register the start of the DTD. |
void | startElement(String uri, String localname, String rawname, Attributes atts)
Callback interface for SAX: not for application use |
void | startEntity(String name) |
void | startPrefixMapping(String prefix, String uri)
Callback interface for SAX: not for application use |
void | unparsedEntityDecl(String name, String publicId, String systemId, String notationName) |
public ContentEmitter()
create a ContentEmitter and initialise variables
public void characters(char[] ch, int start, int length)
Callback interface for SAX: not for application use
public void comment(char[] ch, int start, int length)
Callback interface for SAX (part of LexicalHandler interface): not for application use
public void endCDATA()
public void endDocument()
Callback interface for SAX: not for application use
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
public void endElement(String uri, String localname, String rawname)
Callback interface for SAX: not for application use
public void endEntity(String name)
public void endPrefixMapping(String prefix)
Callback interface for SAX: not for application use
public void ignorableWhitespace(char[] ch, int start, int length)
Callback interface for SAX: not for application use
public void notationDecl(String name, String publicId, String systemId)
public void processingInstruction(String name, String remainder)
Callback interface for SAX: not for application use
public void setDocumentLocator(Locator locator)
Callback interface for SAX: not for application use
public void setNamePool(
NamePool namePool)
public void skippedEntity(String name)
public void startCDATA()
public void startDocument()
Callback interface for SAX: not for application use
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
public void startElement(String uri, String localname, String rawname, Attributes atts)
Callback interface for SAX: not for application use
public void startEntity(String name)
public void startPrefixMapping(String prefix, String uri)
Callback interface for SAX: not for application use
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName)