com.icl.saxon.output

Class ProxyEmitter

public abstract class ProxyEmitter extends Emitter

A ProxyEmitter is an Emitter that filters data before passing it to another underlying Emitter.
Field Summary
protected EmitterbaseEmitter
protected PropertiesoutputProperties
Method Summary
voidcharacters(char[] chars, int start, int len)
Character data
voidcomment(char[] ch, int start, int length)
Output a comment
voidendDocument()
End of document
voidendElement(int nameCode)
End of element
voidprocessingInstruction(String target, String data)
Processing Instruction
voidsetDocumentLocator(Locator locator)
Set the Document Locator
voidsetEscaping(boolean escaping)
Switch escaping on or off.
voidsetNamePool(NamePool pool)
Set the name pool to be used for all name codes
voidsetOutputProperties(Properties details)
Set the output details.
voidsetUnderlyingEmitter(Emitter emitter)
Set the underlying emitter.
voidsetUnparsedEntity(String name, String uri)
Set the URI for an unparsed entity in the document.
voidsetWriter(Writer writer)
Set the result destination
voidstartDocument()
Start of document
voidstartElement(int nameCode, Attributes attributes, int[] namespaces, int nscount)
Start of element

Field Detail

baseEmitter

protected Emitter baseEmitter

outputProperties

protected Properties outputProperties

Method Detail

characters

public void characters(char[] chars, int start, int len)
Character data

comment

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

endDocument

public void endDocument()
End of document

endElement

public void endElement(int nameCode)
End of element

processingInstruction

public void processingInstruction(String target, String data)
Processing Instruction

setDocumentLocator

public void setDocumentLocator(Locator locator)
Set the Document Locator

setEscaping

public void setEscaping(boolean escaping)
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.

setNamePool

public void setNamePool(NamePool pool)
Set the name pool to be used for all name codes

setOutputProperties

public void setOutputProperties(Properties details)
Set the output details.

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)
Set the URI for an unparsed entity in the document.

setWriter

public void setWriter(Writer writer)
Set the result destination

startDocument

public void startDocument()
Start of document

startElement

public void startElement(int nameCode, Attributes attributes, int[] namespaces, int nscount)
Start of element