1 /*
2 * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 // XMLFilterImpl.java - base SAX2 filter implementation.
27 // http://www.saxproject.org
28 // Written by David Megginson
29 // NO WARRANTY! This class is in the Public Domain.
30 // $Id: XMLFilterImpl.java,v 1.3 2004/11/03 22:53:09 jsuttor Exp $
31
32 package org.xml.sax.helpers;
33
34 import java.io.IOException;
35
36 import org.xml.sax.XMLReader;
37 import org.xml.sax.XMLFilter;
38 import org.xml.sax.InputSource;
39 import org.xml.sax.Locator;
40 import org.xml.sax.Attributes;
41 import org.xml.sax.EntityResolver;
42 import org.xml.sax.DTDHandler;
43 import org.xml.sax.ContentHandler;
44 import org.xml.sax.ErrorHandler;
45 import org.xml.sax.SAXException;
46 import org.xml.sax.SAXParseException;
47 import org.xml.sax.SAXNotSupportedException;
48 import org.xml.sax.SAXNotRecognizedException;
49
50
51 /**
52 * Base class for deriving an XML filter.
53 *
54 * <blockquote>
55 * <em>This module, both source code and documentation, is in the
56 * Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
57 * See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
58 * for further information.
59 * </blockquote>
60 *
61 * <p>This class is designed to sit between an {@link org.xml.sax.XMLReader
62 * XMLReader} and the client application's event handlers. By default, it
63 * does nothing but pass requests up to the reader and events
64 * on to the handlers unmodified, but subclasses can override
65 * specific methods to modify the event stream or the configuration
66 * requests as they pass through.</p>
67 *
68 * @since 1.4, SAX 2.0
69 * @author David Megginson
70 * @see org.xml.sax.XMLFilter
71 * @see org.xml.sax.XMLReader
72 * @see org.xml.sax.EntityResolver
73 * @see org.xml.sax.DTDHandler
74 * @see org.xml.sax.ContentHandler
75 * @see org.xml.sax.ErrorHandler
76 */
77 public class XMLFilterImpl
78 implements XMLFilter, EntityResolver, DTDHandler, ContentHandler, ErrorHandler
79 {
|
1 /*
2 * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package org.xml.sax.helpers;
27
28 import java.io.IOException;
29
30 import org.xml.sax.XMLReader;
31 import org.xml.sax.XMLFilter;
32 import org.xml.sax.InputSource;
33 import org.xml.sax.Locator;
34 import org.xml.sax.Attributes;
35 import org.xml.sax.EntityResolver;
36 import org.xml.sax.DTDHandler;
37 import org.xml.sax.ContentHandler;
38 import org.xml.sax.ErrorHandler;
39 import org.xml.sax.SAXException;
40 import org.xml.sax.SAXParseException;
41 import org.xml.sax.SAXNotSupportedException;
42 import org.xml.sax.SAXNotRecognizedException;
43
44
45 /**
46 * Base class for deriving an XML filter.
47 *
48 * <p>This class is designed to sit between an {@link org.xml.sax.XMLReader
49 * XMLReader} and the client application's event handlers. By default, it
50 * does nothing but pass requests up to the reader and events
51 * on to the handlers unmodified, but subclasses can override
52 * specific methods to modify the event stream or the configuration
53 * requests as they pass through.</p>
54 *
55 * @since 1.4, SAX 2.0
56 * @author David Megginson
57 * @see org.xml.sax.XMLFilter
58 * @see org.xml.sax.XMLReader
59 * @see org.xml.sax.EntityResolver
60 * @see org.xml.sax.DTDHandler
61 * @see org.xml.sax.ContentHandler
62 * @see org.xml.sax.ErrorHandler
63 */
64 public class XMLFilterImpl
65 implements XMLFilter, EntityResolver, DTDHandler, ContentHandler, ErrorHandler
66 {
|