Class Summary | |
class
|
XIncludeFilter
extends org.xml.sax.helpers.XMLFilterImpl with AnyRef
This is a SAX filter which resolves all XInclude include elements before passing them on to the client application. Currently this class has the following known deviation from the XInclude specification:
Furthermore, I would definitely use a new instance of this class for each document you want to process. I doubt it can be used successfully on multiple documents. Furthermore, I can virtually guarantee that this class is not thread safe. You have been warned. Since this class is not designed to be subclassed, and since I have not yet considered how that might affect the methods herein or what other protected methods might be needed to support subclasses, I have declared this class final. I may remove this restriction later, though the use-case for subclassing is weak. This class is designed to have its functionality extended via a a horizontal chain of filters, not a vertical hierarchy of sub and superclasses. To use this class:
e.g.
translated from Elliotte Rusty Harold's Java source |
class
|
XIncluder
(outs : java.io.OutputStream, encoding : java.lang.String) extends org.xml.sax.ContentHandler with org.xml.sax.ext.LexicalHandler with AnyRef
XIncluder is a SAX
ContentHandler
that writes its XML document onto an output stream after resolving
all xinclude:include elements.
based on Eliotte Rusty Harold's SAXXIncluder |
Object Summary | |
object
|
EncodingHeuristics
extends AnyRef
Translated from Elliotte Rusty Harold's Java source |
object
|
Main
extends AnyRef
|