com.icl.saxon

Class ContentEmitter

Implemented Interfaces:
ContentHandler, DTDHandler, LexicalHandler
Known Direct Subclasses:
IdentityTransformerHandler, TemplatesHandlerImpl, TransformerHandlerImpl

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.

Nested Class Summary

Constructor Summary

ContentEmitter()
create a ContentEmitter and initialise variables

Method Summary

void
characters(ch[] , int start, int length)
Callback interface for SAX: not for application use
void
comment(ch[] , int start, int length)
Callback interface for SAX (part of LexicalHandler interface): not for application use
void
endCDATA()
void
endDTD()
Register the end of the DTD.
void
endDocument()
Callback interface for SAX: not for application use
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(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
startDTD(String name, String publicId, String systemId)
Register the start of the DTD.
void
startDocument()
Callback interface for SAX: not for application use
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)

Constructor Details

ContentEmitter

public ContentEmitter()
create a ContentEmitter and initialise variables

Method Details

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