Package com.icl.saxon.output
Class UncommittedEmitter
- java.lang.Object
-
- com.icl.saxon.output.Emitter
-
- com.icl.saxon.output.ProxyEmitter
-
- com.icl.saxon.output.UncommittedEmitter
-
- All Implemented Interfaces:
Result
public class UncommittedEmitter extends ProxyEmitter
This class generates XML or HTML output depending on whether the first tag output is ""
-
-
Field Summary
-
Fields inherited from class com.icl.saxon.output.ProxyEmitter
baseEmitter, outputProperties
-
Fields inherited from class com.icl.saxon.output.Emitter
locator, namePool, outputStream, systemId, writer
-
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
-
-
Constructor Summary
Constructors Constructor Description UncommittedEmitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)Produce character output using the current Writer.voidcomment(char[] ch, int start, int length)Output a commentvoidendDocument()End of documentvoidprocessingInstruction(String target, String data)Processing InstructionvoidsetEscaping(boolean escaping)Switch escaping on or off.voidstartDocument()Start of documentvoidstartElement(int nameCode, Attributes attributes, int[] namespaces, int nscount)Output an element start tag.-
Methods inherited from class com.icl.saxon.output.ProxyEmitter
endElement, setDocumentLocator, setNamePool, setOutputProperties, setUnderlyingEmitter, setUnparsedEntity, setWriter
-
Methods inherited from class com.icl.saxon.output.Emitter
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setOutputStream, setSystemId, usesWriter
-
-
-
-
Method Detail
-
startDocument
public void startDocument() throws TransformerExceptionDescription copied from class:ProxyEmitterStart of document- Overrides:
startDocumentin classProxyEmitter- Throws:
TransformerException
-
endDocument
public void endDocument() throws TransformerExceptionEnd of document- Overrides:
endDocumentin classProxyEmitter- Throws:
TransformerException
-
characters
public void characters(char[] ch, int start, int length) throws TransformerExceptionProduce character output using the current Writer.- Overrides:
charactersin classProxyEmitter- Throws:
TransformerException
-
processingInstruction
public void processingInstruction(String target, String data) throws TransformerException
Processing Instruction- Overrides:
processingInstructionin classProxyEmitter- Throws:
TransformerException
-
comment
public void comment(char[] ch, int start, int length) throws TransformerExceptionOutput a comment- Overrides:
commentin classProxyEmitter- Throws:
TransformerException
-
startElement
public void startElement(int nameCode, Attributes attributes, int[] namespaces, int nscount) throws TransformerExceptionOutput 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:
name- The element name (tag)- Throws:
TransformerException
-
setEscaping
public void setEscaping(boolean escaping) throws TransformerExceptionSwitch 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
-
-