01: package com.sun.istack;
02:
03: import org.xml.sax.helpers.XMLFilterImpl;
04: import org.xml.sax.SAXException;
05: import org.xml.sax.XMLReader;
06: import org.xml.sax.ContentHandler;
07:
08: /**
09: * {@link XMLFilterImpl} that masks start/end document SAX events.
10: * @author Kohsuke Kawaguchi
11: */
12: public class FragmentContentHandler extends XMLFilterImpl {
13: public FragmentContentHandler() {
14: }
15:
16: public FragmentContentHandler(XMLReader parent) {
17: super (parent);
18: }
19:
20: public FragmentContentHandler(ContentHandler handler) {
21: super ();
22: setContentHandler(handler);
23: }
24:
25: public void startDocument() throws SAXException {
26: // noop
27: }
28:
29: public void endDocument() throws SAXException {
30: // noop
31: }
32: }
|