net.sf.saxon.event

Class TEXTEmitter

public class TEXTEmitter extends XMLEmitter

This class generates TEXT output

Author: Michael H. Kay

Field Summary
booleanrecognizeBinary
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.
protected voidopenDocument()
voidprocessingInstruction(String name, CharSequence value, int locationId, int properties)
Output a processing instruction.
voidsetOutputProperties(Properties details)
Set output properties
voidstartElement(int nameCode, int typeCode, int locationId, int properties)
Output an element start tag.
voidwriteDeclaration()
Output the XML declaration.

Field Detail

recognizeBinary

boolean recognizeBinary

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.

openDocument

protected void openDocument()

processingInstruction

public void processingInstruction(String name, CharSequence value, int locationId, int properties)
Output a processing instruction.
Does nothing with this output method, unless the saxon:recognize-binary option is set, and this is the processing instructions hex or b64. The name of the processing instruction may be followed by an encoding name, for example b64.ascii indicates base64-encoded ASCII strings; if no encoding is present, the encoding of the output method is assumed.

setOutputProperties

public void setOutputProperties(Properties details)
Set output properties

Parameters: details the output serialization properties

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

writeDeclaration

public void writeDeclaration()
Output the XML declaration. This implementation does nothing.