Package com.icl.saxon.output
Class TEXTEmitter
java.lang.Object
com.icl.saxon.output.Emitter
com.icl.saxon.output.XMLEmitter
com.icl.saxon.output.TEXTEmitter
- All Implemented Interfaces:
Result
This class generates TEXT output
- Author:
- Michael H. Kay
-
Field Summary
Fields inherited from class com.icl.saxon.output.XMLEmitter
attbuff1, characterSet, declarationIsWritten, docTypeWritten, empty, escaping, lastDisplayName, lastNameCode, lastPrefix, lastURI, openStartTag, preferHex, specialInAtt, specialInText
Fields inherited from class com.icl.saxon.output.Emitter
locator, namePool, outputProperties, outputStream, systemId, writer
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) Produce output using the current Writer.void
comment
(char[] ch, int start, int length) Output a comment.void
endElement
(int nameCode) Output an element end tag.void
processingInstruction
(String name, String value) Output a processing instruction.void
Start of the document.void
startElement
(int nameCode, Attributes attributes, int[] namespaces, int nscount) Output an element start tag.Methods inherited from class com.icl.saxon.output.XMLEmitter
closeStartTag, emptyElementTagCloser, endDocument, outputCharacterReference, setDocumentLocator, setEscaping, setOutputProperties, setResult, setUnparsedEntity, testCharacters, testCharacters, writeAttribute, writeDeclaration, writeDocType, writeEscape
Methods inherited from class com.icl.saxon.output.Emitter
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setNamePool, setOutputStream, setSystemId, setWriter, usesWriter
-
Constructor Details
-
TEXTEmitter
public TEXTEmitter()
-
-
Method Details
-
startDocument
Start of the document.- Overrides:
startDocument
in classXMLEmitter
- Throws:
TransformerException
-
characters
Produce output using the current Writer.
Special characters are not escaped.- Overrides:
characters
in classXMLEmitter
- Parameters:
ch
- Character array to be outputstart
- start position of characters to be outputlength
- number of characters to be output- Throws:
TransformerException
- for any failure
-
startElement
public void startElement(int nameCode, Attributes attributes, int[] namespaces, int nscount) throws TransformerException Output an element start tag.
Does nothing with this output method.- Overrides:
startElement
in classXMLEmitter
- Parameters:
namespaces
- Array of namespace codes identifying the namespace prefix/uri pairs associated with this elementnscount
- Number of significant entries within namespaces arrayname
- The element name (tag)- Throws:
TransformerException
-
endElement
Output an element end tag.
Does nothing with this output method.- Overrides:
endElement
in classXMLEmitter
- Parameters:
name
- The element name (tag)- Throws:
TransformerException
-
processingInstruction
Output a processing instruction.
Does nothing with this output method.- Overrides:
processingInstruction
in classXMLEmitter
- Throws:
TransformerException
-
comment
Output a comment.
Does nothing with this output method.- Overrides:
comment
in classXMLEmitter
- Throws:
TransformerException
-