com.icl.saxon.output

Class ProxyEmitter

Implemented Interfaces:
Result
Known Direct Subclasses:
CDATAFilter, DTDEmitter, HTMLIndenter, NamespaceEmitter, Stripper, UncommittedEmitter, XMLIndenter

public abstract class ProxyEmitter
extends Emitter

A ProxyEmitter is an Emitter that filters data before passing it to another underlying Emitter.

Nested Class Summary

Field Summary

protected Emitter
baseEmitter
protected Properties
outputProperties

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

locator, namePool, outputProperties, outputStream, systemId, writer

Method Summary

void
characters(char[] chars, int start, int len)
Character data
void
comment(ch[] , int start, int length)
Output a comment
void
endDocument()
End of document
void
endElement(int nameCode)
End of element
void
processingInstruction(String target, String data)
Processing Instruction
void
setDocumentLocator(Locator locator)
Set the Document Locator
void
setEscaping(boolean escaping)
Switch escaping on or off.
void
setNamePool(NamePool pool)
Set the name pool to be used for all name codes
void
setOutputProperties(Properties details)
Set the output details.
void
setUnderlyingEmitter(Emitter emitter)
Set the underlying emitter.
void
setUnparsedEntity(String name, String uri)
Set the URI for an unparsed entity in the document.
void
setWriter(Writer writer)
Set the result destination
void
startDocument()
Start of document
void
startElement(int nameCode, Attributes attributes, int[] namespaces, int nscount)
Start of element

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

Field Details

baseEmitter

protected Emitter baseEmitter


outputProperties

protected Properties outputProperties

Method Details

characters

public void characters(char[] chars,
                       int start,
                       int len)
            throws TransformerException
Character data
Overrides:
characters in interface Emitter


comment

public void comment(ch[] ,
                    int start,
                    int length)
            throws TransformerException
Output a comment


endDocument

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


endElement

public void endElement(int nameCode)
            throws TransformerException
End of element
Overrides:
endElement in interface Emitter


processingInstruction

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


setDocumentLocator

public void setDocumentLocator(Locator locator)
Set the Document Locator
Overrides:
setDocumentLocator in interface Emitter


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 Emitter


setNamePool

public void setNamePool(NamePool pool)
Set the name pool to be used for all name codes
Overrides:
setNamePool in interface Emitter


setOutputProperties

public void setOutputProperties(Properties details)
Set the output details.
Overrides:
setOutputProperties in interface Emitter


setUnderlyingEmitter

public void setUnderlyingEmitter(Emitter emitter)
Set the underlying emitter. This call is mandatory before using the Emitter.


setUnparsedEntity

public void setUnparsedEntity(String name,
                              String uri)
            throws TransformerException
Set the URI for an unparsed entity in the document.
Overrides:
setUnparsedEntity in interface Emitter


setWriter

public void setWriter(Writer writer)
Set the result destination
Overrides:
setWriter in interface Emitter


startDocument

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


startElement

public void startElement(int nameCode,
                         Attributes attributes,
                         int[] namespaces,
                         int nscount)
            throws TransformerException
Start of element
Overrides:
startElement in interface Emitter