net.sf.saxon.event

Class TEXTEmitter

public class TEXTEmitter extends XMLEmitter

This class generates TEXT output

Author: Michael H. Kay

Method Summary
voidattribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties)
voidcharacters(CharSequence chars, int locationId, int properties)
Produce output using the current Writer.
voidcomment(CharSequence chars, int locationId, int properties)
Output a comment.
voidendElement()
Output an element end tag.
voidnamespace(int namespaceCode, int properties)
voidopen()
Start of the document.
voidprocessingInstruction(String name, CharSequence value, int locationId, int properties)
Output a processing instruction.
voidstartElement(int nameCode, int typeCode, int locationId, int properties)
Output an element start tag.

Method Detail

attribute

public void attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties)

characters

public void characters(CharSequence chars, int locationId, int properties)
Produce output using the current Writer.
Special characters are not escaped.

Parameters: chars Character sequence to be output properties bit fields holding special properties of the characters

Throws: XPathException for any failure

comment

public void comment(CharSequence chars, int locationId, int properties)
Output a comment.
Does nothing with this output method.

endElement

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

namespace

public void namespace(int namespaceCode, int properties)

open

public void open()
Start of the document.

processingInstruction

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

startElement

public void startElement(int nameCode, int typeCode, int locationId, int properties)
Output an element start tag.
Does nothing with this output method.

Parameters: nameCode The element name (tag) typeCode The type annotation properties Bit fields holding any special properties of the element