net.sf.saxon.event
Class TEXTEmitter
public
class
TEXTEmitter
extends XMLEmitter
This class generates TEXT output
Author: Michael H. Kay
Method Summary |
void | attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties) |
void | characters(CharSequence chars, int locationId, int properties)
Produce output using the current Writer. |
void | comment(CharSequence chars, int locationId, int properties)
Output a comment. |
void | endElement()
Output an element end tag. |
void | namespace(int namespaceCode, int properties) |
void | open()
Start of the document. |
protected void | openDocument() |
void | processingInstruction(String name, CharSequence value, int locationId, int properties)
Output a processing instruction. |
void | setOutputProperties(Properties details)
Set output properties |
void | startElement(int nameCode, int typeCode, int locationId, int properties)
Output an element start tag. |
void | writeDeclaration()
Output the XML declaration. |
boolean recognizeBinary
public void attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties)
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
public void comment(CharSequence chars, int locationId, int properties)
Output a comment.
Does nothing with this output method.
public void endElement()
Output an element end tag.
Does nothing with this output method.
public void namespace(int namespaceCode, int properties)
public void open()
Start of the document.
protected void openDocument()
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.
public void setOutputProperties(Properties details)
Set output properties
Parameters: details the output serialization properties
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
public void writeDeclaration()
Output the XML declaration. This implementation does nothing.