com.icl.saxon.output

Class TEXTEmitter

public class TEXTEmitter extends XMLEmitter

This class generates TEXT output

Author: Michael H. Kay

Method Summary
voidcharacters(char[] ch, int start, int length)
Produce output using the current Writer.
voidcomment(char[] ch, int start, int length)
Output a comment.
voidendElement(int nameCode)
Output an element end tag.
voidprocessingInstruction(String name, String value)
Output a processing instruction.
voidstartDocument()
Start of the document.
voidstartElement(int nameCode, Attributes attributes, int[] namespaces, int nscount)
Output an element start tag.

Method Detail

characters

public void characters(char[] ch, int start, int length)
Produce output using the current Writer.
Special characters are not escaped.

Parameters: ch Character array to be output start start position of characters to be output length number of characters to be output

Throws: TransformerException for any failure

comment

public void comment(char[] ch, int start, int length)
Output a comment.
Does nothing with this output method.

endElement

public void endElement(int nameCode)
Output an element end tag.
Does nothing with this output method.

Parameters: name The element name (tag)

processingInstruction

public void processingInstruction(String name, String value)
Output a processing instruction.
Does nothing with this output method.

startDocument

public void startDocument()
Start of the document.

startElement

public void startElement(int nameCode, Attributes attributes, int[] namespaces, int nscount)
Output an element start tag.
Does nothing with this output method.

Parameters: name The element name (tag)