Class TEXTEmitter
java.lang.Object
com.icl.saxon.output.Emitter
com.icl.saxon.output.XMLEmitter
com.icl.saxon.output.TEXTEmitter
- All Implemented Interfaces:
Result
-
Field Summary
Fields inherited from class XMLEmitter
attbuff1, characterSet, declarationIsWritten, docTypeWritten, empty, escaping, lastDisplayName, lastNameCode, lastPrefix, lastURI, openStartTag, preferHex, specialInAtt, specialInTextFields inherited from class Emitter
locator, namePool, outputProperties, outputStream, systemId, writerFields inherited from interface Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) Produce output using the current Writer.voidcomment(char[] ch, int start, int length) Output a comment.voidendElement(int nameCode) Output an element end tag.voidprocessingInstruction(String name, String value) Output a processing instruction.voidStart of the document.voidstartElement(int nameCode, Attributes attributes, int[] namespaces, int nscount) Output an element start tag.Methods inherited from class XMLEmitter
closeStartTag, emptyElementTagCloser, endDocument, outputCharacterReference, setDocumentLocator, setEscaping, setOutputProperties, setResult, setUnparsedEntity, testCharacters, testCharacters, writeAttribute, writeDeclaration, writeDocType, writeEscapeMethods inherited from class 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:
startDocumentin classXMLEmitter- Throws:
TransformerException
-
characters
Produce output using the current Writer.
Special characters are not escaped.- Overrides:
charactersin 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:
startElementin 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:
endElementin classXMLEmitter- Parameters:
name- The element name (tag)- Throws:
TransformerException
-
processingInstruction
Output a processing instruction.
Does nothing with this output method.- Overrides:
processingInstructionin classXMLEmitter- Throws:
TransformerException
-
comment
Output a comment.
Does nothing with this output method.- Overrides:
commentin classXMLEmitter- Throws:
TransformerException
-