Package com.icl.saxon.output
Class ProxyEmitter
java.lang.Object
com.icl.saxon.output.Emitter
com.icl.saxon.output.ProxyEmitter
- All Implemented Interfaces:
Result
- Direct Known Subclasses:
CDATAFilter
,DTDEmitter
,HTMLIndenter
,NamespaceEmitter
,Stripper
,UncommittedEmitter
,XMLIndenter
A ProxyEmitter is an Emitter that filters data before passing it to another
underlying Emitter.
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] chars, int start, int len) Character datavoid
comment
(char[] ch, int start, int length) Output a commentvoid
End of documentvoid
endElement
(int nameCode) End of elementvoid
processingInstruction
(String target, String data) Processing Instructionvoid
setDocumentLocator
(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
(Properties details) Set the output details.void
setUnderlyingEmitter
(Emitter emitter) Set the underlying emitter.void
setUnparsedEntity
(String name, String uri) Set the URI for an unparsed entity in the document.void
Set the result destinationvoid
Start of documentvoid
startElement
(int nameCode, Attributes attributes, int[] namespaces, int nscount) Start of elementMethods inherited from class com.icl.saxon.output.Emitter
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setOutputStream, setSystemId, usesWriter
-
Field Details
-
baseEmitter
-
outputProperties
-
-
Constructor Details
-
ProxyEmitter
public ProxyEmitter()
-
-
Method Details
-
setUnderlyingEmitter
Set the underlying emitter. This call is mandatory before using the Emitter. -
setNamePool
Set the name pool to be used for all name codes- Overrides:
setNamePool
in classEmitter
-
setWriter
Set the result destination -
startDocument
Start of document- Specified by:
startDocument
in classEmitter
- Throws:
TransformerException
-
endDocument
End of document- Specified by:
endDocument
in classEmitter
- Throws:
TransformerException
-
startElement
public void startElement(int nameCode, Attributes attributes, int[] namespaces, int nscount) throws TransformerException Start of element- Specified by:
startElement
in classEmitter
- Parameters:
namespaces
- Array of namespace codes identifying the namespace prefix/uri pairs associated with this elementnscount
- Number of significant entries within namespaces array- Throws:
TransformerException
-
endElement
End of element- Specified by:
endElement
in classEmitter
- Throws:
TransformerException
-
characters
Character data- Specified by:
characters
in classEmitter
- Throws:
TransformerException
-
processingInstruction
Processing Instruction- Specified by:
processingInstruction
in classEmitter
- Throws:
TransformerException
-
comment
Output a comment- Specified by:
comment
in classEmitter
- 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:
setEscaping
in classEmitter
- Throws:
TransformerException
-
setOutputProperties
Set the output details.- Overrides:
setOutputProperties
in classEmitter
-
setUnparsedEntity
Set the URI for an unparsed entity in the document.- Overrides:
setUnparsedEntity
in classEmitter
- Throws:
TransformerException
-
setDocumentLocator
Set the Document Locator- Overrides:
setDocumentLocator
in classEmitter
-