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 Emitter
baseEmitter
protected java.util.Properties
outputProperties
-
Constructor Summary
Constructors Constructor Description ProxyEmitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] chars, int start, int len)
Character datavoid
comment(char[] ch, int start, int length)
Output a commentvoid
endDocument()
End of documentvoid
endElement(int nameCode)
End of elementvoid
processingInstruction(java.lang.String target, java.lang.String data)
Processing Instructionvoid
setDocumentLocator(org.xml.sax.Locator locator)
Set the Document Locatorvoid
setEscaping(boolean escaping)
Switch escaping on or off.void
setNamePool(NamePool pool)
Set the name pool to be used for all name codesvoid
setOutputProperties(java.util.Properties details)
Set the output details.void
setUnderlyingEmitter(Emitter emitter)
Set the underlying emitter.void
setUnparsedEntity(java.lang.String name, java.lang.String uri)
Set the URI for an unparsed entity in the document.void
setWriter(java.io.Writer writer)
Set the result destinationvoid
startDocument()
Start of documentvoid
startElement(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:
setNamePool
in classEmitter
-
setWriter
public void setWriter(java.io.Writer writer)
Set the result destination
-
startDocument
public void startDocument() throws javax.xml.transform.TransformerException
Start of document- Specified by:
startDocument
in classEmitter
- Throws:
javax.xml.transform.TransformerException
-
endDocument
public void endDocument() throws javax.xml.transform.TransformerException
End of document- Specified by:
endDocument
in 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.TransformerException
Start of element- Specified by:
startElement
in classEmitter
namespaces
- 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.TransformerException
End of element- Specified by:
endElement
in classEmitter
- Throws:
javax.xml.transform.TransformerException
-
characters
public void characters(char[] chars, int start, int len) throws javax.xml.transform.TransformerException
Character data- Specified by:
characters
in classEmitter
- Throws:
javax.xml.transform.TransformerException
-
processingInstruction
public void processingInstruction(java.lang.String target, java.lang.String data) throws javax.xml.transform.TransformerException
Processing Instruction- Specified by:
processingInstruction
in classEmitter
- Throws:
javax.xml.transform.TransformerException
-
comment
public void comment(char[] ch, int start, int length) throws javax.xml.transform.TransformerException
Output a comment
-
setEscaping
public void setEscaping(boolean escaping) throws javax.xml.transform.TransformerException
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:
setEscaping
in classEmitter
- Throws:
javax.xml.transform.TransformerException
-
setOutputProperties
public void setOutputProperties(java.util.Properties details)
Set the output details.- Overrides:
setOutputProperties
in classEmitter
-
setUnparsedEntity
public void setUnparsedEntity(java.lang.String name, java.lang.String uri) throws javax.xml.transform.TransformerException
Set the URI for an unparsed entity in the document.- Overrides:
setUnparsedEntity
in classEmitter
- Throws:
javax.xml.transform.TransformerException
-
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
Set the Document Locator- Overrides:
setDocumentLocator
in classEmitter
-
-