jaxp/src/share/classes/org/xml/sax/HandlerBase.java
author kvn
Fri, 20 Jun 2008 11:10:05 -0700
changeset 762 1b26adb5fea1
parent 6 7f561c08de6b
permissions -rw-r--r--
6715633: when matching a memory node the adr_type should not change Summary: verify the adr_type of a mach node was not changed Reviewed-by: rasbold, never
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
7f561c08de6b Initial load
duke
parents:
diff changeset
     1
/*
7f561c08de6b Initial load
duke
parents:
diff changeset
     2
 * Copyright 2000-2006 Sun Microsystems, Inc.  All Rights Reserved.
7f561c08de6b Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7f561c08de6b Initial load
duke
parents:
diff changeset
     4
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
7f561c08de6b Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
7f561c08de6b Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
7f561c08de6b Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
7f561c08de6b Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
7f561c08de6b Initial load
duke
parents:
diff changeset
    10
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
7f561c08de6b Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
7f561c08de6b Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
7f561c08de6b Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
7f561c08de6b Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
7f561c08de6b Initial load
duke
parents:
diff changeset
    16
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
7f561c08de6b Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
7f561c08de6b Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
7f561c08de6b Initial load
duke
parents:
diff changeset
    20
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
7f561c08de6b Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
7f561c08de6b Initial load
duke
parents:
diff changeset
    23
 * have any questions.
7f561c08de6b Initial load
duke
parents:
diff changeset
    24
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    25
7f561c08de6b Initial load
duke
parents:
diff changeset
    26
// SAX default handler base class.
7f561c08de6b Initial load
duke
parents:
diff changeset
    27
// http://www.saxproject.org
7f561c08de6b Initial load
duke
parents:
diff changeset
    28
// No warranty; no copyright -- use this as you will.
7f561c08de6b Initial load
duke
parents:
diff changeset
    29
// $Id: HandlerBase.java,v 1.2 2005/06/10 03:50:47 jeffsuttor Exp $
7f561c08de6b Initial load
duke
parents:
diff changeset
    30
7f561c08de6b Initial load
duke
parents:
diff changeset
    31
package org.xml.sax;
7f561c08de6b Initial load
duke
parents:
diff changeset
    32
7f561c08de6b Initial load
duke
parents:
diff changeset
    33
/**
7f561c08de6b Initial load
duke
parents:
diff changeset
    34
 * Default base class for handlers.
7f561c08de6b Initial load
duke
parents:
diff changeset
    35
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    36
 * <blockquote>
7f561c08de6b Initial load
duke
parents:
diff changeset
    37
 * <em>This module, both source code and documentation, is in the
7f561c08de6b Initial load
duke
parents:
diff changeset
    38
 * Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
7f561c08de6b Initial load
duke
parents:
diff changeset
    39
 * See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
    40
 * for further information.
7f561c08de6b Initial load
duke
parents:
diff changeset
    41
 * </blockquote>
7f561c08de6b Initial load
duke
parents:
diff changeset
    42
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    43
 * <p>This class implements the default behaviour for four SAX1
7f561c08de6b Initial load
duke
parents:
diff changeset
    44
 * interfaces: EntityResolver, DTDHandler, DocumentHandler,
7f561c08de6b Initial load
duke
parents:
diff changeset
    45
 * and ErrorHandler.  It is now obsolete, but is included in SAX2 to
7f561c08de6b Initial load
duke
parents:
diff changeset
    46
 * support legacy SAX1 applications.  SAX2 applications should use
7f561c08de6b Initial load
duke
parents:
diff changeset
    47
 * the {@link org.xml.sax.helpers.DefaultHandler DefaultHandler}
7f561c08de6b Initial load
duke
parents:
diff changeset
    48
 * class instead.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    49
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    50
 * <p>Application writers can extend this class when they need to
7f561c08de6b Initial load
duke
parents:
diff changeset
    51
 * implement only part of an interface; parser writers can
7f561c08de6b Initial load
duke
parents:
diff changeset
    52
 * instantiate this class to provide default handlers when the
7f561c08de6b Initial load
duke
parents:
diff changeset
    53
 * application has not supplied its own.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    54
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    55
 * <p>Note that the use of this class is optional.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    56
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    57
 * @deprecated This class works with the deprecated
7f561c08de6b Initial load
duke
parents:
diff changeset
    58
 *             {@link org.xml.sax.DocumentHandler DocumentHandler}
7f561c08de6b Initial load
duke
parents:
diff changeset
    59
 *             interface.  It has been replaced by the SAX2
7f561c08de6b Initial load
duke
parents:
diff changeset
    60
 *             {@link org.xml.sax.helpers.DefaultHandler DefaultHandler}
7f561c08de6b Initial load
duke
parents:
diff changeset
    61
 *             class.
7f561c08de6b Initial load
duke
parents:
diff changeset
    62
 * @since SAX 1.0
7f561c08de6b Initial load
duke
parents:
diff changeset
    63
 * @author David Megginson
7f561c08de6b Initial load
duke
parents:
diff changeset
    64
 * @see org.xml.sax.EntityResolver
7f561c08de6b Initial load
duke
parents:
diff changeset
    65
 * @see org.xml.sax.DTDHandler
7f561c08de6b Initial load
duke
parents:
diff changeset
    66
 * @see org.xml.sax.DocumentHandler
7f561c08de6b Initial load
duke
parents:
diff changeset
    67
 * @see org.xml.sax.ErrorHandler
7f561c08de6b Initial load
duke
parents:
diff changeset
    68
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    69
public class HandlerBase
7f561c08de6b Initial load
duke
parents:
diff changeset
    70
    implements EntityResolver, DTDHandler, DocumentHandler, ErrorHandler
7f561c08de6b Initial load
duke
parents:
diff changeset
    71
{
7f561c08de6b Initial load
duke
parents:
diff changeset
    72
7f561c08de6b Initial load
duke
parents:
diff changeset
    73
7f561c08de6b Initial load
duke
parents:
diff changeset
    74
    ////////////////////////////////////////////////////////////////////
7f561c08de6b Initial load
duke
parents:
diff changeset
    75
    // Default implementation of the EntityResolver interface.
7f561c08de6b Initial load
duke
parents:
diff changeset
    76
    ////////////////////////////////////////////////////////////////////
7f561c08de6b Initial load
duke
parents:
diff changeset
    77
7f561c08de6b Initial load
duke
parents:
diff changeset
    78
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    79
     * Resolve an external entity.
7f561c08de6b Initial load
duke
parents:
diff changeset
    80
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    81
     * <p>Always return null, so that the parser will use the system
7f561c08de6b Initial load
duke
parents:
diff changeset
    82
     * identifier provided in the XML document.  This method implements
7f561c08de6b Initial load
duke
parents:
diff changeset
    83
     * the SAX default behaviour: application writers can override it
7f561c08de6b Initial load
duke
parents:
diff changeset
    84
     * in a subclass to do special translations such as catalog lookups
7f561c08de6b Initial load
duke
parents:
diff changeset
    85
     * or URI redirection.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    86
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    87
     * @param publicId The public identifer, or null if none is
7f561c08de6b Initial load
duke
parents:
diff changeset
    88
     *                 available.
7f561c08de6b Initial load
duke
parents:
diff changeset
    89
     * @param systemId The system identifier provided in the XML
7f561c08de6b Initial load
duke
parents:
diff changeset
    90
     *                 document.
7f561c08de6b Initial load
duke
parents:
diff changeset
    91
     * @return The new input source, or null to require the
7f561c08de6b Initial load
duke
parents:
diff changeset
    92
     *         default behaviour.
7f561c08de6b Initial load
duke
parents:
diff changeset
    93
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
    94
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
    95
     * @see org.xml.sax.EntityResolver#resolveEntity
7f561c08de6b Initial load
duke
parents:
diff changeset
    96
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    97
    public InputSource resolveEntity (String publicId, String systemId)
7f561c08de6b Initial load
duke
parents:
diff changeset
    98
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
    99
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   100
        return null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   101
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   102
7f561c08de6b Initial load
duke
parents:
diff changeset
   103
7f561c08de6b Initial load
duke
parents:
diff changeset
   104
7f561c08de6b Initial load
duke
parents:
diff changeset
   105
    ////////////////////////////////////////////////////////////////////
7f561c08de6b Initial load
duke
parents:
diff changeset
   106
    // Default implementation of DTDHandler interface.
7f561c08de6b Initial load
duke
parents:
diff changeset
   107
    ////////////////////////////////////////////////////////////////////
7f561c08de6b Initial load
duke
parents:
diff changeset
   108
7f561c08de6b Initial load
duke
parents:
diff changeset
   109
7f561c08de6b Initial load
duke
parents:
diff changeset
   110
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   111
     * Receive notification of a notation declaration.
7f561c08de6b Initial load
duke
parents:
diff changeset
   112
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   113
     * <p>By default, do nothing.  Application writers may override this
7f561c08de6b Initial load
duke
parents:
diff changeset
   114
     * method in a subclass if they wish to keep track of the notations
7f561c08de6b Initial load
duke
parents:
diff changeset
   115
     * declared in a document.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   116
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   117
     * @param name The notation name.
7f561c08de6b Initial load
duke
parents:
diff changeset
   118
     * @param publicId The notation public identifier, or null if not
7f561c08de6b Initial load
duke
parents:
diff changeset
   119
     *                 available.
7f561c08de6b Initial load
duke
parents:
diff changeset
   120
     * @param systemId The notation system identifier.
7f561c08de6b Initial load
duke
parents:
diff changeset
   121
     * @see org.xml.sax.DTDHandler#notationDecl
7f561c08de6b Initial load
duke
parents:
diff changeset
   122
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   123
    public void notationDecl (String name, String publicId, String systemId)
7f561c08de6b Initial load
duke
parents:
diff changeset
   124
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   125
        // no op
7f561c08de6b Initial load
duke
parents:
diff changeset
   126
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   127
7f561c08de6b Initial load
duke
parents:
diff changeset
   128
7f561c08de6b Initial load
duke
parents:
diff changeset
   129
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   130
     * Receive notification of an unparsed entity declaration.
7f561c08de6b Initial load
duke
parents:
diff changeset
   131
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   132
     * <p>By default, do nothing.  Application writers may override this
7f561c08de6b Initial load
duke
parents:
diff changeset
   133
     * method in a subclass to keep track of the unparsed entities
7f561c08de6b Initial load
duke
parents:
diff changeset
   134
     * declared in a document.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   135
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   136
     * @param name The entity name.
7f561c08de6b Initial load
duke
parents:
diff changeset
   137
     * @param publicId The entity public identifier, or null if not
7f561c08de6b Initial load
duke
parents:
diff changeset
   138
     *                 available.
7f561c08de6b Initial load
duke
parents:
diff changeset
   139
     * @param systemId The entity system identifier.
7f561c08de6b Initial load
duke
parents:
diff changeset
   140
     * @param notationName The name of the associated notation.
7f561c08de6b Initial load
duke
parents:
diff changeset
   141
     * @see org.xml.sax.DTDHandler#unparsedEntityDecl
7f561c08de6b Initial load
duke
parents:
diff changeset
   142
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   143
    public void unparsedEntityDecl (String name, String publicId,
7f561c08de6b Initial load
duke
parents:
diff changeset
   144
                                    String systemId, String notationName)
7f561c08de6b Initial load
duke
parents:
diff changeset
   145
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   146
        // no op
7f561c08de6b Initial load
duke
parents:
diff changeset
   147
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   148
7f561c08de6b Initial load
duke
parents:
diff changeset
   149
7f561c08de6b Initial load
duke
parents:
diff changeset
   150
7f561c08de6b Initial load
duke
parents:
diff changeset
   151
    ////////////////////////////////////////////////////////////////////
7f561c08de6b Initial load
duke
parents:
diff changeset
   152
    // Default implementation of DocumentHandler interface.
7f561c08de6b Initial load
duke
parents:
diff changeset
   153
    ////////////////////////////////////////////////////////////////////
7f561c08de6b Initial load
duke
parents:
diff changeset
   154
7f561c08de6b Initial load
duke
parents:
diff changeset
   155
7f561c08de6b Initial load
duke
parents:
diff changeset
   156
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   157
     * Receive a Locator object for document events.
7f561c08de6b Initial load
duke
parents:
diff changeset
   158
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   159
     * <p>By default, do nothing.  Application writers may override this
7f561c08de6b Initial load
duke
parents:
diff changeset
   160
     * method in a subclass if they wish to store the locator for use
7f561c08de6b Initial load
duke
parents:
diff changeset
   161
     * with other document events.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   162
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   163
     * @param locator A locator for all SAX document events.
7f561c08de6b Initial load
duke
parents:
diff changeset
   164
     * @see org.xml.sax.DocumentHandler#setDocumentLocator
7f561c08de6b Initial load
duke
parents:
diff changeset
   165
     * @see org.xml.sax.Locator
7f561c08de6b Initial load
duke
parents:
diff changeset
   166
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   167
    public void setDocumentLocator (Locator locator)
7f561c08de6b Initial load
duke
parents:
diff changeset
   168
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   169
        // no op
7f561c08de6b Initial load
duke
parents:
diff changeset
   170
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   171
7f561c08de6b Initial load
duke
parents:
diff changeset
   172
7f561c08de6b Initial load
duke
parents:
diff changeset
   173
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   174
     * Receive notification of the beginning of the document.
7f561c08de6b Initial load
duke
parents:
diff changeset
   175
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   176
     * <p>By default, do nothing.  Application writers may override this
7f561c08de6b Initial load
duke
parents:
diff changeset
   177
     * method in a subclass to take specific actions at the beginning
7f561c08de6b Initial load
duke
parents:
diff changeset
   178
     * of a document (such as allocating the root node of a tree or
7f561c08de6b Initial load
duke
parents:
diff changeset
   179
     * creating an output file).</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   180
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   181
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   182
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   183
     * @see org.xml.sax.DocumentHandler#startDocument
7f561c08de6b Initial load
duke
parents:
diff changeset
   184
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   185
    public void startDocument ()
7f561c08de6b Initial load
duke
parents:
diff changeset
   186
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   187
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   188
        // no op
7f561c08de6b Initial load
duke
parents:
diff changeset
   189
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   190
7f561c08de6b Initial load
duke
parents:
diff changeset
   191
7f561c08de6b Initial load
duke
parents:
diff changeset
   192
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   193
     * Receive notification of the end of the document.
7f561c08de6b Initial load
duke
parents:
diff changeset
   194
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   195
     * <p>By default, do nothing.  Application writers may override this
7f561c08de6b Initial load
duke
parents:
diff changeset
   196
     * method in a subclass to take specific actions at the end
7f561c08de6b Initial load
duke
parents:
diff changeset
   197
     * of a document (such as finalising a tree or closing an output
7f561c08de6b Initial load
duke
parents:
diff changeset
   198
     * file).</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   199
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   200
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   201
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   202
     * @see org.xml.sax.DocumentHandler#endDocument
7f561c08de6b Initial load
duke
parents:
diff changeset
   203
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   204
    public void endDocument ()
7f561c08de6b Initial load
duke
parents:
diff changeset
   205
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   206
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   207
        // no op
7f561c08de6b Initial load
duke
parents:
diff changeset
   208
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   209
7f561c08de6b Initial load
duke
parents:
diff changeset
   210
7f561c08de6b Initial load
duke
parents:
diff changeset
   211
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   212
     * Receive notification of the start of an element.
7f561c08de6b Initial load
duke
parents:
diff changeset
   213
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   214
     * <p>By default, do nothing.  Application writers may override this
7f561c08de6b Initial load
duke
parents:
diff changeset
   215
     * method in a subclass to take specific actions at the start of
7f561c08de6b Initial load
duke
parents:
diff changeset
   216
     * each element (such as allocating a new tree node or writing
7f561c08de6b Initial load
duke
parents:
diff changeset
   217
     * output to a file).</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   218
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   219
     * @param name The element type name.
7f561c08de6b Initial load
duke
parents:
diff changeset
   220
     * @param attributes The specified or defaulted attributes.
7f561c08de6b Initial load
duke
parents:
diff changeset
   221
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   222
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   223
     * @see org.xml.sax.DocumentHandler#startElement
7f561c08de6b Initial load
duke
parents:
diff changeset
   224
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   225
    public void startElement (String name, AttributeList attributes)
7f561c08de6b Initial load
duke
parents:
diff changeset
   226
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   227
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   228
        // no op
7f561c08de6b Initial load
duke
parents:
diff changeset
   229
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   230
7f561c08de6b Initial load
duke
parents:
diff changeset
   231
7f561c08de6b Initial load
duke
parents:
diff changeset
   232
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   233
     * Receive notification of the end of an element.
7f561c08de6b Initial load
duke
parents:
diff changeset
   234
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   235
     * <p>By default, do nothing.  Application writers may override this
7f561c08de6b Initial load
duke
parents:
diff changeset
   236
     * method in a subclass to take specific actions at the end of
7f561c08de6b Initial load
duke
parents:
diff changeset
   237
     * each element (such as finalising a tree node or writing
7f561c08de6b Initial load
duke
parents:
diff changeset
   238
     * output to a file).</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   239
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   240
     * @param name the element name
7f561c08de6b Initial load
duke
parents:
diff changeset
   241
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   242
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   243
     * @see org.xml.sax.DocumentHandler#endElement
7f561c08de6b Initial load
duke
parents:
diff changeset
   244
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   245
    public void endElement (String name)
7f561c08de6b Initial load
duke
parents:
diff changeset
   246
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   247
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   248
        // no op
7f561c08de6b Initial load
duke
parents:
diff changeset
   249
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   250
7f561c08de6b Initial load
duke
parents:
diff changeset
   251
7f561c08de6b Initial load
duke
parents:
diff changeset
   252
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   253
     * Receive notification of character data inside an element.
7f561c08de6b Initial load
duke
parents:
diff changeset
   254
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   255
     * <p>By default, do nothing.  Application writers may override this
7f561c08de6b Initial load
duke
parents:
diff changeset
   256
     * method to take specific actions for each chunk of character data
7f561c08de6b Initial load
duke
parents:
diff changeset
   257
     * (such as adding the data to a node or buffer, or printing it to
7f561c08de6b Initial load
duke
parents:
diff changeset
   258
     * a file).</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   259
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   260
     * @param ch The characters.
7f561c08de6b Initial load
duke
parents:
diff changeset
   261
     * @param start The start position in the character array.
7f561c08de6b Initial load
duke
parents:
diff changeset
   262
     * @param length The number of characters to use from the
7f561c08de6b Initial load
duke
parents:
diff changeset
   263
     *               character array.
7f561c08de6b Initial load
duke
parents:
diff changeset
   264
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   265
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   266
     * @see org.xml.sax.DocumentHandler#characters
7f561c08de6b Initial load
duke
parents:
diff changeset
   267
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   268
    public void characters (char ch[], int start, int length)
7f561c08de6b Initial load
duke
parents:
diff changeset
   269
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   270
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   271
        // no op
7f561c08de6b Initial load
duke
parents:
diff changeset
   272
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   273
7f561c08de6b Initial load
duke
parents:
diff changeset
   274
7f561c08de6b Initial load
duke
parents:
diff changeset
   275
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   276
     * Receive notification of ignorable whitespace in element content.
7f561c08de6b Initial load
duke
parents:
diff changeset
   277
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   278
     * <p>By default, do nothing.  Application writers may override this
7f561c08de6b Initial load
duke
parents:
diff changeset
   279
     * method to take specific actions for each chunk of ignorable
7f561c08de6b Initial load
duke
parents:
diff changeset
   280
     * whitespace (such as adding data to a node or buffer, or printing
7f561c08de6b Initial load
duke
parents:
diff changeset
   281
     * it to a file).</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   282
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   283
     * @param ch The whitespace characters.
7f561c08de6b Initial load
duke
parents:
diff changeset
   284
     * @param start The start position in the character array.
7f561c08de6b Initial load
duke
parents:
diff changeset
   285
     * @param length The number of characters to use from the
7f561c08de6b Initial load
duke
parents:
diff changeset
   286
     *               character array.
7f561c08de6b Initial load
duke
parents:
diff changeset
   287
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   288
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   289
     * @see org.xml.sax.DocumentHandler#ignorableWhitespace
7f561c08de6b Initial load
duke
parents:
diff changeset
   290
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   291
    public void ignorableWhitespace (char ch[], int start, int length)
7f561c08de6b Initial load
duke
parents:
diff changeset
   292
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   293
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   294
        // no op
7f561c08de6b Initial load
duke
parents:
diff changeset
   295
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   296
7f561c08de6b Initial load
duke
parents:
diff changeset
   297
7f561c08de6b Initial load
duke
parents:
diff changeset
   298
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   299
     * Receive notification of a processing instruction.
7f561c08de6b Initial load
duke
parents:
diff changeset
   300
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   301
     * <p>By default, do nothing.  Application writers may override this
7f561c08de6b Initial load
duke
parents:
diff changeset
   302
     * method in a subclass to take specific actions for each
7f561c08de6b Initial load
duke
parents:
diff changeset
   303
     * processing instruction, such as setting status variables or
7f561c08de6b Initial load
duke
parents:
diff changeset
   304
     * invoking other methods.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   305
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   306
     * @param target The processing instruction target.
7f561c08de6b Initial load
duke
parents:
diff changeset
   307
     * @param data The processing instruction data, or null if
7f561c08de6b Initial load
duke
parents:
diff changeset
   308
     *             none is supplied.
7f561c08de6b Initial load
duke
parents:
diff changeset
   309
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   310
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   311
     * @see org.xml.sax.DocumentHandler#processingInstruction
7f561c08de6b Initial load
duke
parents:
diff changeset
   312
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   313
    public void processingInstruction (String target, String data)
7f561c08de6b Initial load
duke
parents:
diff changeset
   314
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   315
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   316
        // no op
7f561c08de6b Initial load
duke
parents:
diff changeset
   317
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   318
7f561c08de6b Initial load
duke
parents:
diff changeset
   319
7f561c08de6b Initial load
duke
parents:
diff changeset
   320
7f561c08de6b Initial load
duke
parents:
diff changeset
   321
    ////////////////////////////////////////////////////////////////////
7f561c08de6b Initial load
duke
parents:
diff changeset
   322
    // Default implementation of the ErrorHandler interface.
7f561c08de6b Initial load
duke
parents:
diff changeset
   323
    ////////////////////////////////////////////////////////////////////
7f561c08de6b Initial load
duke
parents:
diff changeset
   324
7f561c08de6b Initial load
duke
parents:
diff changeset
   325
7f561c08de6b Initial load
duke
parents:
diff changeset
   326
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   327
     * Receive notification of a parser warning.
7f561c08de6b Initial load
duke
parents:
diff changeset
   328
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   329
     * <p>The default implementation does nothing.  Application writers
7f561c08de6b Initial load
duke
parents:
diff changeset
   330
     * may override this method in a subclass to take specific actions
7f561c08de6b Initial load
duke
parents:
diff changeset
   331
     * for each warning, such as inserting the message in a log file or
7f561c08de6b Initial load
duke
parents:
diff changeset
   332
     * printing it to the console.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   333
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   334
     * @param e The warning information encoded as an exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   335
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   336
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   337
     * @see org.xml.sax.ErrorHandler#warning
7f561c08de6b Initial load
duke
parents:
diff changeset
   338
     * @see org.xml.sax.SAXParseException
7f561c08de6b Initial load
duke
parents:
diff changeset
   339
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   340
    public void warning (SAXParseException e)
7f561c08de6b Initial load
duke
parents:
diff changeset
   341
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   342
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   343
        // no op
7f561c08de6b Initial load
duke
parents:
diff changeset
   344
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   345
7f561c08de6b Initial load
duke
parents:
diff changeset
   346
7f561c08de6b Initial load
duke
parents:
diff changeset
   347
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   348
     * Receive notification of a recoverable parser error.
7f561c08de6b Initial load
duke
parents:
diff changeset
   349
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   350
     * <p>The default implementation does nothing.  Application writers
7f561c08de6b Initial load
duke
parents:
diff changeset
   351
     * may override this method in a subclass to take specific actions
7f561c08de6b Initial load
duke
parents:
diff changeset
   352
     * for each error, such as inserting the message in a log file or
7f561c08de6b Initial load
duke
parents:
diff changeset
   353
     * printing it to the console.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   354
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   355
     * @param e The warning information encoded as an exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   356
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   357
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   358
     * @see org.xml.sax.ErrorHandler#warning
7f561c08de6b Initial load
duke
parents:
diff changeset
   359
     * @see org.xml.sax.SAXParseException
7f561c08de6b Initial load
duke
parents:
diff changeset
   360
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   361
    public void error (SAXParseException e)
7f561c08de6b Initial load
duke
parents:
diff changeset
   362
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   363
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   364
        // no op
7f561c08de6b Initial load
duke
parents:
diff changeset
   365
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   366
7f561c08de6b Initial load
duke
parents:
diff changeset
   367
7f561c08de6b Initial load
duke
parents:
diff changeset
   368
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   369
     * Report a fatal XML parsing error.
7f561c08de6b Initial load
duke
parents:
diff changeset
   370
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   371
     * <p>The default implementation throws a SAXParseException.
7f561c08de6b Initial load
duke
parents:
diff changeset
   372
     * Application writers may override this method in a subclass if
7f561c08de6b Initial load
duke
parents:
diff changeset
   373
     * they need to take specific actions for each fatal error (such as
7f561c08de6b Initial load
duke
parents:
diff changeset
   374
     * collecting all of the errors into a single report): in any case,
7f561c08de6b Initial load
duke
parents:
diff changeset
   375
     * the application must stop all regular processing when this
7f561c08de6b Initial load
duke
parents:
diff changeset
   376
     * method is invoked, since the document is no longer reliable, and
7f561c08de6b Initial load
duke
parents:
diff changeset
   377
     * the parser may no longer report parsing events.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   378
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   379
     * @param e The error information encoded as an exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   380
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   381
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   382
     * @see org.xml.sax.ErrorHandler#fatalError
7f561c08de6b Initial load
duke
parents:
diff changeset
   383
     * @see org.xml.sax.SAXParseException
7f561c08de6b Initial load
duke
parents:
diff changeset
   384
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   385
    public void fatalError (SAXParseException e)
7f561c08de6b Initial load
duke
parents:
diff changeset
   386
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   387
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   388
        throw e;
7f561c08de6b Initial load
duke
parents:
diff changeset
   389
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   390
7f561c08de6b Initial load
duke
parents:
diff changeset
   391
}
7f561c08de6b Initial load
duke
parents:
diff changeset
   392
7f561c08de6b Initial load
duke
parents:
diff changeset
   393
// end of HandlerBase.java