01: /* Copyright 2001 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal;
07:
08: import org.jasig.portal.utils.SAX2FilterImpl;
09: import org.xml.sax.ContentHandler;
10: import org.xml.sax.SAXException;
11: import org.xml.sax.XMLReader;
12:
13: /**
14: * Filters out startDocument and endDocument from the
15: * channel content.
16: * This filter is invoked by the ChannelManager
17: * prior to passing channel content to the ChannelIncorporationFilter.
18: * @author Peter Kharchenko
19: * @version $Revision: 34807 $
20: */
21: public class ChannelSAXStreamFilter extends SAX2FilterImpl {
22: // downward
23: public ChannelSAXStreamFilter(ContentHandler handler) {
24: super (handler);
25: }
26:
27: // upward
28: public ChannelSAXStreamFilter(XMLReader parent) {
29: super (parent);
30: }
31:
32: public void startDocument() throws SAXException {
33: }
34:
35: public void endDocument() throws SAXException {
36: }
37:
38: public void processingInstruction(String target, String data)
39: throws SAXException {
40: }
41: }
|