com.icl.saxon.output

Class StringEmitter

final class StringEmitter extends Emitter

This class outputs text content to a StringBuffer, and discards all other content.

Author: Michael H. Kay

Constructor Summary
protected StringEmitter(StringBuffer buffer)
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.
voidendDocument()
End of the document.
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.

Constructor Detail

StringEmitter

protected StringEmitter(StringBuffer buffer)

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.

endDocument

public void endDocument()
End of the document.

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)