Package com.icl.saxon.output
Class ProxyEmitter
- java.lang.Object
-
- com.icl.saxon.output.Emitter
-
- com.icl.saxon.output.ProxyEmitter
-
- All Implemented Interfaces:
javax.xml.transform.Result
- Direct Known Subclasses:
CDATAFilter,DTDEmitter,HTMLIndenter,NamespaceEmitter,Stripper,UncommittedEmitter,XMLIndenter
public abstract class ProxyEmitter extends Emitter
A ProxyEmitter is an Emitter that filters data before passing it to another underlying Emitter.
-
-
Field Summary
Fields Modifier and Type Field Description protected EmitterbaseEmitterprotected java.util.PropertiesoutputProperties
-
Constructor Summary
Constructors Constructor Description ProxyEmitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] chars, int start, int len)Character datavoidcomment(char[] ch, int start, int length)Output a commentvoidendDocument()End of documentvoidendElement(int nameCode)End of elementvoidprocessingInstruction(java.lang.String target, java.lang.String data)Processing InstructionvoidsetDocumentLocator(org.xml.sax.Locator locator)Set the Document LocatorvoidsetEscaping(boolean escaping)Switch escaping on or off.voidsetNamePool(NamePool pool)Set the name pool to be used for all name codesvoidsetOutputProperties(java.util.Properties details)Set the output details.voidsetUnderlyingEmitter(Emitter emitter)Set the underlying emitter.voidsetUnparsedEntity(java.lang.String name, java.lang.String uri)Set the URI for an unparsed entity in the document.voidsetWriter(java.io.Writer writer)Set the result destinationvoidstartDocument()Start of documentvoidstartElement(int nameCode, org.xml.sax.Attributes attributes, int[] namespaces, int nscount)Start of element-
Methods inherited from class com.icl.saxon.output.Emitter
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setOutputStream, setSystemId, usesWriter
-
-
-
-
Field Detail
-
baseEmitter
protected Emitter baseEmitter
-
outputProperties
protected java.util.Properties outputProperties
-
-
Method Detail
-
setUnderlyingEmitter
public void setUnderlyingEmitter(Emitter emitter)
Set the underlying emitter. This call is mandatory before using the Emitter.
-
setNamePool
public void setNamePool(NamePool pool)
Set the name pool to be used for all name codes- Overrides:
setNamePoolin classEmitter
-
setWriter
public void setWriter(java.io.Writer writer)
Set the result destination
-
startDocument
public void startDocument() throws javax.xml.transform.TransformerExceptionStart of document- Specified by:
startDocumentin classEmitter- Throws:
javax.xml.transform.TransformerException
-
endDocument
public void endDocument() throws javax.xml.transform.TransformerExceptionEnd of document- Specified by:
endDocumentin classEmitter- Throws:
javax.xml.transform.TransformerException
-
startElement
public void startElement(int nameCode, org.xml.sax.Attributes attributes, int[] namespaces, int nscount) throws javax.xml.transform.TransformerExceptionStart of element- Specified by:
startElementin classEmitternamespaces- Array of namespace codes identifying the namespace prefix/uri pairs associated with this elementnscount- Number of significant entries within namespaces array- Throws:
javax.xml.transform.TransformerException
-
endElement
public void endElement(int nameCode) throws javax.xml.transform.TransformerExceptionEnd of element- Specified by:
endElementin classEmitter- Throws:
javax.xml.transform.TransformerException
-
characters
public void characters(char[] chars, int start, int len) throws javax.xml.transform.TransformerExceptionCharacter data- Specified by:
charactersin classEmitter- Throws:
javax.xml.transform.TransformerException
-
processingInstruction
public void processingInstruction(java.lang.String target, java.lang.String data) throws javax.xml.transform.TransformerExceptionProcessing Instruction- Specified by:
processingInstructionin classEmitter- Throws:
javax.xml.transform.TransformerException
-
comment
public void comment(char[] ch, int start, int length) throws javax.xml.transform.TransformerExceptionOutput a comment
-
setEscaping
public void setEscaping(boolean escaping) throws javax.xml.transform.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 classEmitter- Throws:
javax.xml.transform.TransformerException
-
setOutputProperties
public void setOutputProperties(java.util.Properties details)
Set the output details.- Overrides:
setOutputPropertiesin classEmitter
-
setUnparsedEntity
public void setUnparsedEntity(java.lang.String name, java.lang.String uri) throws javax.xml.transform.TransformerExceptionSet the URI for an unparsed entity in the document.- Overrides:
setUnparsedEntityin classEmitter- Throws:
javax.xml.transform.TransformerException
-
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
Set the Document Locator- Overrides:
setDocumentLocatorin classEmitter
-
-