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
public class TEXTEmitter extends XMLEmitter
This class generates TEXT output
-
-
Field Summary
-
Fields inherited from class com.icl.saxon.output.XMLEmitter
characterSet, declarationIsWritten, empty, escaping, lastDisplayName, lastNameCode, lastPrefix, lastURI, openStartTag, preferHex
-
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 Constructor Description TEXTEmitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(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.voidstartDocument()Start of the document.voidstartElement(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
-
-
-
-
Method Detail
-
startDocument
public void startDocument() throws TransformerExceptionStart of the document.- Overrides:
startDocumentin classXMLEmitter- Throws:
TransformerException
-
characters
public void characters(char[] ch, int start, int length) throws TransformerExceptionProduce 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 TransformerExceptionOutput an element start tag.
Does nothing with this output method.- Overrides:
startElementin classXMLEmitter- Parameters:
name- The element name (tag)- Throws:
TransformerException
-
endElement
public void endElement(int nameCode) throws TransformerExceptionOutput an element end tag.
Does nothing with this output method.- Overrides:
endElementin classXMLEmitter- Parameters:
name- The element name (tag)- Throws:
TransformerException
-
processingInstruction
public void processingInstruction(String name, String value) throws TransformerException
Output a processing instruction.
Does nothing with this output method.- Overrides:
processingInstructionin classXMLEmitter- Throws:
TransformerException
-
comment
public void comment(char[] ch, int start, int length) throws TransformerExceptionOutput a comment.
Does nothing with this output method.- Overrides:
commentin classXMLEmitter- Throws:
TransformerException
-
-