Class UncommittedEmitter
java.lang.Object
com.icl.saxon.output.Emitter
com.icl.saxon.output.ProxyEmitter
com.icl.saxon.output.UncommittedEmitter
- All Implemented Interfaces:
Result
This class generates XML or HTML output depending on whether the first tag output is ""
- Author:
- Michael H. Kay
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) boolean(package private) boolean(package private) StringBufferFields inherited from class ProxyEmitter
baseEmitter, outputPropertiesFields 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 character output using the current Writer.voidcomment(char[] ch, int start, int length) Output a commentvoidEnd of documentvoidprocessingInstruction(String target, String data) Processing InstructionvoidsetEscaping(boolean escaping) Switch escaping on or off.voidStart of documentvoidstartElement(int nameCode, Attributes attributes, int[] namespaces, int nscount) Output an element start tag.Methods inherited from class ProxyEmitter
endElement, setDocumentLocator, setNamePool, setOutputProperties, setUnderlyingEmitter, setUnparsedEntity, setWriterMethods inherited from class Emitter
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setOutputStream, setSystemId, usesWriter
-
Field Details
-
committed
boolean committed -
initialNewline
boolean initialNewline -
initialEscaping
boolean initialEscaping -
pendingCharacters
StringBuffer pendingCharacters
-
-
Constructor Details
-
UncommittedEmitter
public UncommittedEmitter()
-
-
Method Details
-
startDocument
Description copied from class:ProxyEmitterStart of document- Overrides:
startDocumentin classProxyEmitter- Throws:
TransformerException
-
endDocument
End of document- Overrides:
endDocumentin classProxyEmitter- Throws:
TransformerException
-
characters
Produce character output using the current Writer.- Overrides:
charactersin classProxyEmitter- Throws:
TransformerException
-
processingInstruction
Processing Instruction- Overrides:
processingInstructionin classProxyEmitter- Throws:
TransformerException
-
comment
Output a comment- Overrides:
commentin classProxyEmitter- Throws:
TransformerException
-
startElement
public void startElement(int nameCode, Attributes attributes, int[] namespaces, int nscount) throws TransformerException Output an element start tag.
This can only be called once: it switches to a substitute output generator for XML or HTML, depending on whether the tag is "HTML".- Overrides:
startElementin classProxyEmitter- 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
-
setEscaping
Switch escaping on or off. This is called when the XSLT disable-output-escaping attribute is used to switch escaping on or off. It is not called for other sections of output (e.g. element names) where escaping is inappropriate.- Overrides:
setEscapingin classProxyEmitter- Throws:
TransformerException
-