< prev index next >

src/java.xml/share/classes/org/xml/sax/HandlerBase.java

Print this page


   1 /*
   2  * Copyright (c) 2000, 2017, 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 // SAX default handler base class.
  27 // http://www.saxproject.org
  28 // No warranty; no copyright -- use this as you will.
  29 // $Id: HandlerBase.java,v 1.2 2005/06/10 03:50:47 jeffsuttor Exp $
  30 
  31 package org.xml.sax;
  32 
  33 /**
  34  * Default base class for handlers.
  35  *
  36  * <blockquote>
  37  * <em>This module, both source code and documentation, is in the
  38  * Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
  39  * See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
  40  * for further information.
  41  * </blockquote>
  42  *
  43  * <p>This class implements the default behaviour for four SAX1
  44  * interfaces: EntityResolver, DTDHandler, DocumentHandler,
  45  * and ErrorHandler.  It is now obsolete, but is included in SAX2 to
  46  * support legacy SAX1 applications.  SAX2 applications should use
  47  * the {@link org.xml.sax.helpers.DefaultHandler DefaultHandler}
  48  * class instead.</p>
  49  *
  50  * <p>Application writers can extend this class when they need to
  51  * implement only part of an interface; parser writers can
  52  * instantiate this class to provide default handlers when the
  53  * application has not supplied its own.</p>
  54  *
  55  * <p>Note that the use of this class is optional.</p>
  56  *
  57  * @deprecated This class works with the deprecated
  58  *             {@link org.xml.sax.DocumentHandler DocumentHandler}
  59  *             interface.  It has been replaced by the SAX2
  60  *             {@link org.xml.sax.helpers.DefaultHandler DefaultHandler}
  61  *             class.
  62  * @since 1.4, SAX 1.0
  63  * @author David Megginson


   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;
  27 
  28 /**
  29  * Default base class for handlers.
  30  *
  31  * <p>This class implements the default behavior for four SAX1







  32  * interfaces: EntityResolver, DTDHandler, DocumentHandler,
  33  * and ErrorHandler.  It is now obsolete, but is included in SAX2 to
  34  * support legacy SAX1 applications.  SAX2 applications should use
  35  * the {@link org.xml.sax.helpers.DefaultHandler DefaultHandler}
  36  * class instead.</p>
  37  *
  38  * <p>Application writers can extend this class when they need to
  39  * implement only part of an interface; parser writers can
  40  * instantiate this class to provide default handlers when the
  41  * application has not supplied its own.</p>
  42  *
  43  * <p>Note that the use of this class is optional.</p>
  44  *
  45  * @deprecated This class works with the deprecated
  46  *             {@link org.xml.sax.DocumentHandler DocumentHandler}
  47  *             interface.  It has been replaced by the SAX2
  48  *             {@link org.xml.sax.helpers.DefaultHandler DefaultHandler}
  49  *             class.
  50  * @since 1.4, SAX 1.0
  51  * @author David Megginson


< prev index next >