FileDocCategorySizeDatePackage
TeeXMLDocumentFilterImpl.javaAPI DocApache Xerces 3.0.16223Fri Sep 14 20:33:54 BST 2007org.apache.xerces.jaxp

TeeXMLDocumentFilterImpl

public class TeeXMLDocumentFilterImpl extends Object implements org.apache.xerces.xni.parser.XMLDocumentFilter

XMLDocumentHandler which forks the pipeline to two other components.

author
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
version
$Id: TeeXMLDocumentFilterImpl.java 447237 2006-09-18 05:03:10Z mrglavas $

Fields Summary
private org.apache.xerces.xni.XMLDocumentHandler
next
The next component in the pipeline who receives the event. This component receives events after the "side" handler receives them.
private org.apache.xerces.xni.XMLDocumentHandler
side
The component who intercepts events.
private org.apache.xerces.xni.parser.XMLDocumentSource
source
The source of the event.
Constructors Summary
Methods Summary
public voidcharacters(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs)

        side.characters(text, augs);
        next.characters(text, augs);
    
public voidcomment(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs)

        side.comment(text, augs);
        next.comment(text, augs);
    
public voiddoctypeDecl(java.lang.String rootElement, java.lang.String publicId, java.lang.String systemId, org.apache.xerces.xni.Augmentations augs)

        side.doctypeDecl(rootElement, publicId, systemId, augs);
        next.doctypeDecl(rootElement, publicId, systemId, augs);
    
public voidemptyElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes, org.apache.xerces.xni.Augmentations augs)

        side.emptyElement(element, attributes, augs);
        next.emptyElement(element, attributes, augs);
    
public voidendCDATA(org.apache.xerces.xni.Augmentations augs)

        side.endCDATA(augs);
        next.endCDATA(augs);
    
public voidendDocument(org.apache.xerces.xni.Augmentations augs)

        side.endDocument(augs);
        next.endDocument(augs);
    
public voidendElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.Augmentations augs)

        side.endElement(element, augs);
        next.endElement(element, augs);
    
public voidendGeneralEntity(java.lang.String name, org.apache.xerces.xni.Augmentations augs)

        side.endGeneralEntity(name, augs);
        next.endGeneralEntity(name, augs);
    
public org.apache.xerces.xni.XMLDocumentHandlergetDocumentHandler()

        return next;
    
public org.apache.xerces.xni.parser.XMLDocumentSourcegetDocumentSource()

        return source;
    
public org.apache.xerces.xni.XMLDocumentHandlergetSide()

        return side;
    
public voidignorableWhitespace(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs)

        side.ignorableWhitespace(text, augs);
        next.ignorableWhitespace(text, augs);
    
public voidprocessingInstruction(java.lang.String target, org.apache.xerces.xni.XMLString data, org.apache.xerces.xni.Augmentations augs)

        side.processingInstruction(target, data, augs);
        next.processingInstruction(target, data, augs);
    
public voidsetDocumentHandler(org.apache.xerces.xni.XMLDocumentHandler handler)

        next = handler;
    
public voidsetDocumentSource(org.apache.xerces.xni.parser.XMLDocumentSource source)

        this.source = source;
    
public voidsetSide(org.apache.xerces.xni.XMLDocumentHandler side)

        this.side = side;
    
public voidstartCDATA(org.apache.xerces.xni.Augmentations augs)

        side.startCDATA(augs);
        next.startCDATA(augs);
    
public voidstartDocument(org.apache.xerces.xni.XMLLocator locator, java.lang.String encoding, org.apache.xerces.xni.NamespaceContext namespaceContext, org.apache.xerces.xni.Augmentations augs)

        side.startDocument(locator, encoding, namespaceContext, augs);
        next.startDocument(locator, encoding, namespaceContext, augs);
    
public voidstartElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes, org.apache.xerces.xni.Augmentations augs)

        side.startElement(element, attributes, augs);
        next.startElement(element, attributes, augs);
    
public voidstartGeneralEntity(java.lang.String name, org.apache.xerces.xni.XMLResourceIdentifier identifier, java.lang.String encoding, org.apache.xerces.xni.Augmentations augs)

        side.startGeneralEntity(name, identifier, encoding, augs);
        next.startGeneralEntity(name, identifier, encoding, augs);
    
public voidtextDecl(java.lang.String version, java.lang.String encoding, org.apache.xerces.xni.Augmentations augs)

        side.textDecl(version, encoding, augs);
        next.textDecl(version, encoding, augs);
    
public voidxmlDecl(java.lang.String version, java.lang.String encoding, java.lang.String standalone, org.apache.xerces.xni.Augmentations augs)

        side.xmlDecl(version, encoding, standalone, augs);
        next.xmlDecl(version, encoding, standalone, augs);