1 /* 2 * Copyright (c) 2015, 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 /** 27 * Provides interfaces to SAX2 facilities that 28 * conformant SAX drivers won't necessarily support. 29 * 30 * 31 * <p> 32 * This package is independent of the SAX2 core, though the functionality 33 * exposed generally needs to be implemented within a parser core. 34 * That independence has several consequences: 35 * 36 * <ul> 37 * 38 * <li>SAX2 drivers are <em>not</em> required to recognize these handlers. 39 * </li> 40 * 41 * <li>You cannot assume that the class files will be present in every SAX2 42 * installation.</li> 43 * 44 * <li>This package may be updated independently of SAX2 (i.e. new 45 * handlers and classes may be added without updating SAX2 itself).</li> 46 * 47 * <li>The new handlers are not implemented by the SAX2 48 * <code>org.xml.sax.helpers.DefaultHandler</code> or 49 * <code>org.xml.sax.helpers.XMLFilterImpl</code> classes. 50 * You can subclass these if you need such behavior, or 51 * use the helper classes found here.</li> 52 * 53 * <li>The handlers need to be registered differently than core SAX2 54 * handlers.</li> 55 * 56 * </ul> 57 * 58 * <p>This package, SAX2-ext, is a standardized extension to SAX2. It is 59 * designed both to allow SAX parsers to pass certain types of information 60 * to applications, and to serve as a simple model for other SAX2 parser 61 * extension packages. Not all such extension packages should need to 62 * be recognized directly by parsers, however. 63 * As an example, most validation systems can be cleanly layered on top 64 * of parsers supporting the standardized SAX2 interfaces. 65 * 66 * @apiNote The SAX API, originally developed at 67 * <a href="http://www.saxproject.org">the SAX Project</a>, was introduced 68 * in Java SE 1.4 and continues to be maintained as part of Java SE. 69 * 70 * @since 1.4 71 */ 72 73 package org.xml.sax.ext;