src/java.xml/share/classes/org/xml/sax/ext/DefaultHandler2.java
changeset 58247 3aef3bccfae3
parent 47216 71c04702a3d5
equal deleted inserted replaced
58246:3c8f89e2ec03 58247:3aef3bccfae3
     1 /*
     1 /*
     2  * Copyright (c) 2004, 2005, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2004, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    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
    22  * or visit www.oracle.com if you need additional information or have any
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
    26 // DefaultHandler2.java - extended DefaultHandler
       
    27 // http://www.saxproject.org
       
    28 // Public Domain: no warranty.
       
    29 // $Id: DefaultHandler2.java,v 1.2 2004/11/03 22:49:08 jsuttor Exp $
       
    30 
       
    31 package org.xml.sax.ext;
    26 package org.xml.sax.ext;
    32 
    27 
    33 import java.io.IOException;
    28 import java.io.IOException;
    34 import org.xml.sax.InputSource;
    29 import org.xml.sax.InputSource;
    35 import org.xml.sax.SAXException;
    30 import org.xml.sax.SAXException;
    41  * SAX2 {@link LexicalHandler}, {@link DeclHandler}, and
    36  * SAX2 {@link LexicalHandler}, {@link DeclHandler}, and
    42  * {@link EntityResolver2} extensions.  Except for overriding the
    37  * {@link EntityResolver2} extensions.  Except for overriding the
    43  * original SAX1 {@link DefaultHandler#resolveEntity resolveEntity()}
    38  * original SAX1 {@link DefaultHandler#resolveEntity resolveEntity()}
    44  * method the added handler methods just return.  Subclassers may
    39  * method the added handler methods just return.  Subclassers may
    45  * override everything on a method-by-method basis.
    40  * override everything on a method-by-method basis.
    46  *
       
    47  * <blockquote>
       
    48  * <em>This module, both source code and documentation, is in the
       
    49  * Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
       
    50  * </blockquote>
       
    51  *
    41  *
    52  * <p> <em>Note:</em> this class might yet learn that the
    42  * <p> <em>Note:</em> this class might yet learn that the
    53  * <em>ContentHandler.setDocumentLocator()</em> call might be passed a
    43  * <em>ContentHandler.setDocumentLocator()</em> call might be passed a
    54  * {@link Locator2} object, and that the
    44  * {@link Locator2} object, and that the
    55  * <em>ContentHandler.startElement()</em> call might be passed a
    45  * <em>ContentHandler.startElement()</em> call might be passed a