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 interface Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] chars, int start, int len) Character datavoidcomment(char[] ch, int start, int length) Output a commentvoidEnd of documentvoidendElement(int nameCode) End of elementvoidprocessingInstruction(String target, String data) Processing InstructionvoidsetDocumentLocator(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(Properties details) Set the output details.voidsetUnderlyingEmitter(Emitter emitter) Set the underlying emitter.voidsetUnparsedEntity(String name, String uri) Set the URI for an unparsed entity in the document.voidSet the result destinationvoidStart of documentvoidstartElement(int nameCode, Attributes attributes, int[] namespaces, int nscount) Start of elementMethods inherited from class 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:
setNamePoolin classEmitter
-
setWriter
-
startDocument
Start of document- Specified by:
startDocumentin classEmitter- Throws:
TransformerException
-
endDocument
End of document- Specified by:
endDocumentin classEmitter- Throws:
TransformerException
-
startElement
public void startElement(int nameCode, Attributes attributes, int[] namespaces, int nscount) throws TransformerException Start of element- Specified by:
startElementin 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:
endElementin classEmitter- Throws:
TransformerException
-
characters
Character data- Specified by:
charactersin classEmitter- Throws:
TransformerException
-
processingInstruction
Processing Instruction- Specified by:
processingInstructionin classEmitter- Throws:
TransformerException
-
comment
Output a comment- Specified by:
commentin 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:
setEscapingin classEmitter- Throws:
TransformerException
-
setOutputProperties
Set the output details.- Overrides:
setOutputPropertiesin classEmitter
-
setUnparsedEntity
Set the URI for an unparsed entity in the document.- Overrides:
setUnparsedEntityin classEmitter- Throws:
TransformerException
-
setDocumentLocator
Set the Document Locator- Overrides:
setDocumentLocatorin classEmitter
-