com.icl.saxon.output

Class UncommittedEmitter

Implemented Interfaces:
Result

public class UncommittedEmitter
extends ProxyEmitter

This class generates XML or HTML output depending on whether the first tag output is ""

Nested Class Summary

Field Summary

Fields inherited from class com.icl.saxon.output.ProxyEmitter

baseEmitter, outputProperties

Fields inherited from class com.icl.saxon.output.Emitter

locator, namePool, outputProperties, outputStream, systemId, writer

Method Summary

void
characters(ch[] , int start, int length)
Produce character output using the current Writer.
void
comment(ch[] , int start, int length)
Output a comment
void
endDocument()
End of document
void
processingInstruction(String target, String data)
Processing Instruction
void
setEscaping(boolean escaping)
Switch escaping on or off.
void
startDocument()
Start of document
void
startElement(int nameCode, Attributes attributes, int[] namespaces, int nscount)
Output an element start tag.

Methods inherited from class com.icl.saxon.output.ProxyEmitter

characters, comment, endDocument, endElement, processingInstruction, setDocumentLocator, setEscaping, setNamePool, setOutputProperties, setUnderlyingEmitter, setUnparsedEntity, setWriter, startDocument, startElement

Methods inherited from class com.icl.saxon.output.Emitter

characters, comment, endDocument, endElement, getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, processingInstruction, setDocumentLocator, setEscaping, setNamePool, setOutputProperties, setOutputStream, setSystemId, setUnparsedEntity, setWriter, startDocument, startElement, usesWriter

Method Details

characters

public void characters(ch[] ,
                       int start,
                       int length)
            throws TransformerException
Produce character output using the current Writer.


comment

public void comment(ch[] ,
                    int start,
                    int length)
            throws TransformerException
Output a comment
Overrides:
comment in interface ProxyEmitter


endDocument

public void endDocument()
            throws TransformerException
End of document
Overrides:
endDocument in interface ProxyEmitter


processingInstruction

public void processingInstruction(String target,
                                  String data)
            throws TransformerException
Processing Instruction
Overrides:
processingInstruction in interface ProxyEmitter


setEscaping

public void setEscaping(boolean escaping)
            throws TransformerException
Switch escaping on or off. This is called when the XSLT disable-output-escaping attribute is used to switch escaping on or off. It is not called for other sections of output (e.g. element names) where escaping is inappropriate.
Overrides:
setEscaping in interface ProxyEmitter


startDocument

public void startDocument()
            throws TransformerException
Start of document
Overrides:
startDocument in interface ProxyEmitter


startElement

public void startElement(int nameCode,
                         Attributes attributes,
                         int[] namespaces,
                         int nscount)
            throws TransformerException
Output an element start tag.
This can only be called once: it switches to a substitute output generator for XML or HTML, depending on whether the tag is "HTML".
Overrides:
startElement in interface ProxyEmitter

Parameters: