jaxp/src/share/classes/org/xml/sax/DocumentHandler.java
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 6 7f561c08de6b
permissions -rw-r--r--
Initial load
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-2005 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 document handler.
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: DocumentHandler.java,v 1.2 2004/11/03 22:44:51 jsuttor 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
 * Receive notification of general document events.
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 was the main event-handling interface for SAX1; in
7f561c08de6b Initial load
duke
parents:
diff changeset
    44
 * SAX2, it has been replaced by {@link org.xml.sax.ContentHandler
7f561c08de6b Initial load
duke
parents:
diff changeset
    45
 * ContentHandler}, which provides Namespace support and reporting
7f561c08de6b Initial load
duke
parents:
diff changeset
    46
 * of skipped entities.  This interface is included in SAX2 only
7f561c08de6b Initial load
duke
parents:
diff changeset
    47
 * to support legacy SAX1 applications.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    48
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    49
 * <p>The order of events in this interface is very important, and
7f561c08de6b Initial load
duke
parents:
diff changeset
    50
 * mirrors the order of information in the document itself.  For
7f561c08de6b Initial load
duke
parents:
diff changeset
    51
 * example, all of an element's content (character data, processing
7f561c08de6b Initial load
duke
parents:
diff changeset
    52
 * instructions, and/or subelements) will appear, in order, between
7f561c08de6b Initial load
duke
parents:
diff changeset
    53
 * the startElement event and the corresponding endElement event.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    54
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    55
 * <p>Application writers who do not want to implement the entire
7f561c08de6b Initial load
duke
parents:
diff changeset
    56
 * interface can derive a class from HandlerBase, which implements
7f561c08de6b Initial load
duke
parents:
diff changeset
    57
 * the default functionality; parser writers can instantiate
7f561c08de6b Initial load
duke
parents:
diff changeset
    58
 * HandlerBase to obtain a default handler.  The application can find
7f561c08de6b Initial load
duke
parents:
diff changeset
    59
 * the location of any document event using the Locator interface
7f561c08de6b Initial load
duke
parents:
diff changeset
    60
 * supplied by the Parser through the setDocumentLocator method.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    61
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    62
 * @deprecated This interface has been replaced by the SAX2
7f561c08de6b Initial load
duke
parents:
diff changeset
    63
 *             {@link org.xml.sax.ContentHandler ContentHandler}
7f561c08de6b Initial load
duke
parents:
diff changeset
    64
 *             interface, which includes Namespace support.
7f561c08de6b Initial load
duke
parents:
diff changeset
    65
 * @since SAX 1.0
7f561c08de6b Initial load
duke
parents:
diff changeset
    66
 * @author David Megginson
7f561c08de6b Initial load
duke
parents:
diff changeset
    67
 * @see org.xml.sax.Parser#setDocumentHandler
7f561c08de6b Initial load
duke
parents:
diff changeset
    68
 * @see org.xml.sax.Locator
7f561c08de6b Initial load
duke
parents:
diff changeset
    69
 * @see org.xml.sax.HandlerBase
7f561c08de6b Initial load
duke
parents:
diff changeset
    70
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    71
public interface DocumentHandler {
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
     * Receive an object for locating the origin of SAX document events.
7f561c08de6b Initial load
duke
parents:
diff changeset
    76
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    77
     * <p>SAX parsers are strongly encouraged (though not absolutely
7f561c08de6b Initial load
duke
parents:
diff changeset
    78
     * required) to supply a locator: if it does so, it must supply
7f561c08de6b Initial load
duke
parents:
diff changeset
    79
     * the locator to the application by invoking this method before
7f561c08de6b Initial load
duke
parents:
diff changeset
    80
     * invoking any of the other methods in the DocumentHandler
7f561c08de6b Initial load
duke
parents:
diff changeset
    81
     * interface.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    82
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    83
     * <p>The locator allows the application to determine the end
7f561c08de6b Initial load
duke
parents:
diff changeset
    84
     * position of any document-related event, even if the parser is
7f561c08de6b Initial load
duke
parents:
diff changeset
    85
     * not reporting an error.  Typically, the application will
7f561c08de6b Initial load
duke
parents:
diff changeset
    86
     * use this information for reporting its own errors (such as
7f561c08de6b Initial load
duke
parents:
diff changeset
    87
     * character content that does not match an application's
7f561c08de6b Initial load
duke
parents:
diff changeset
    88
     * business rules).  The information returned by the locator
7f561c08de6b Initial load
duke
parents:
diff changeset
    89
     * is probably not sufficient for use with a search engine.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    90
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    91
     * <p>Note that the locator will return correct information only
7f561c08de6b Initial load
duke
parents:
diff changeset
    92
     * during the invocation of the events in this interface.  The
7f561c08de6b Initial load
duke
parents:
diff changeset
    93
     * application should not attempt to use it at any other time.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    94
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    95
     * @param locator An object that can return the location of
7f561c08de6b Initial load
duke
parents:
diff changeset
    96
     *                any SAX document event.
7f561c08de6b Initial load
duke
parents:
diff changeset
    97
     * @see org.xml.sax.Locator
7f561c08de6b Initial load
duke
parents:
diff changeset
    98
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    99
    public abstract void setDocumentLocator (Locator locator);
7f561c08de6b Initial load
duke
parents:
diff changeset
   100
7f561c08de6b Initial load
duke
parents:
diff changeset
   101
7f561c08de6b Initial load
duke
parents:
diff changeset
   102
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   103
     * Receive notification of the beginning of a document.
7f561c08de6b Initial load
duke
parents:
diff changeset
   104
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   105
     * <p>The SAX parser will invoke this method only once, before any
7f561c08de6b Initial load
duke
parents:
diff changeset
   106
     * other methods in this interface or in DTDHandler (except for
7f561c08de6b Initial load
duke
parents:
diff changeset
   107
     * setDocumentLocator).</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   108
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   109
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   110
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   111
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   112
    public abstract void startDocument ()
7f561c08de6b Initial load
duke
parents:
diff changeset
   113
        throws SAXException;
7f561c08de6b Initial load
duke
parents:
diff changeset
   114
7f561c08de6b Initial load
duke
parents:
diff changeset
   115
7f561c08de6b Initial load
duke
parents:
diff changeset
   116
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   117
     * Receive notification of the end of a document.
7f561c08de6b Initial load
duke
parents:
diff changeset
   118
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   119
     * <p>The SAX parser will invoke this method only once, and it will
7f561c08de6b Initial load
duke
parents:
diff changeset
   120
     * be the last method invoked during the parse.  The parser shall
7f561c08de6b Initial load
duke
parents:
diff changeset
   121
     * not invoke this method until it has either abandoned parsing
7f561c08de6b Initial load
duke
parents:
diff changeset
   122
     * (because of an unrecoverable error) or reached the end of
7f561c08de6b Initial load
duke
parents:
diff changeset
   123
     * input.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   124
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   125
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   126
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   127
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   128
    public abstract void endDocument ()
7f561c08de6b Initial load
duke
parents:
diff changeset
   129
        throws SAXException;
7f561c08de6b Initial load
duke
parents:
diff changeset
   130
7f561c08de6b Initial load
duke
parents:
diff changeset
   131
7f561c08de6b Initial load
duke
parents:
diff changeset
   132
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   133
     * Receive notification of the beginning of an element.
7f561c08de6b Initial load
duke
parents:
diff changeset
   134
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   135
     * <p>The Parser will invoke this method at the beginning of every
7f561c08de6b Initial load
duke
parents:
diff changeset
   136
     * element in the XML document; there will be a corresponding
7f561c08de6b Initial load
duke
parents:
diff changeset
   137
     * endElement() event for every startElement() event (even when the
7f561c08de6b Initial load
duke
parents:
diff changeset
   138
     * element is empty). All of the element's content will be
7f561c08de6b Initial load
duke
parents:
diff changeset
   139
     * reported, in order, before the corresponding endElement()
7f561c08de6b Initial load
duke
parents:
diff changeset
   140
     * event.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   141
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   142
     * <p>If the element name has a namespace prefix, the prefix will
7f561c08de6b Initial load
duke
parents:
diff changeset
   143
     * still be attached.  Note that the attribute list provided will
7f561c08de6b Initial load
duke
parents:
diff changeset
   144
     * contain only attributes with explicit values (specified or
7f561c08de6b Initial load
duke
parents:
diff changeset
   145
     * defaulted): #IMPLIED attributes will be omitted.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   146
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   147
     * @param name The element type name.
7f561c08de6b Initial load
duke
parents:
diff changeset
   148
     * @param atts The attributes attached to the element, if any.
7f561c08de6b Initial load
duke
parents:
diff changeset
   149
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   150
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   151
     * @see #endElement
7f561c08de6b Initial load
duke
parents:
diff changeset
   152
     * @see org.xml.sax.AttributeList
7f561c08de6b Initial load
duke
parents:
diff changeset
   153
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   154
    public abstract void startElement (String name, AttributeList atts)
7f561c08de6b Initial load
duke
parents:
diff changeset
   155
        throws SAXException;
7f561c08de6b Initial load
duke
parents:
diff changeset
   156
7f561c08de6b Initial load
duke
parents:
diff changeset
   157
7f561c08de6b Initial load
duke
parents:
diff changeset
   158
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   159
     * Receive notification of the end of an element.
7f561c08de6b Initial load
duke
parents:
diff changeset
   160
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   161
     * <p>The SAX parser will invoke this method at the end of every
7f561c08de6b Initial load
duke
parents:
diff changeset
   162
     * element in the XML document; there will be a corresponding
7f561c08de6b Initial load
duke
parents:
diff changeset
   163
     * startElement() event for every endElement() event (even when the
7f561c08de6b Initial load
duke
parents:
diff changeset
   164
     * element is empty).</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   165
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   166
     * <p>If the element name has a namespace prefix, the prefix will
7f561c08de6b Initial load
duke
parents:
diff changeset
   167
     * still be attached to the name.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   168
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   169
     * @param name The element type name
7f561c08de6b Initial load
duke
parents:
diff changeset
   170
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   171
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   172
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   173
    public abstract void endElement (String name)
7f561c08de6b Initial load
duke
parents:
diff changeset
   174
        throws SAXException;
7f561c08de6b Initial load
duke
parents:
diff changeset
   175
7f561c08de6b Initial load
duke
parents:
diff changeset
   176
7f561c08de6b Initial load
duke
parents:
diff changeset
   177
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   178
     * Receive notification of character data.
7f561c08de6b Initial load
duke
parents:
diff changeset
   179
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   180
     * <p>The Parser will call this method to report each chunk of
7f561c08de6b Initial load
duke
parents:
diff changeset
   181
     * character data.  SAX parsers may return all contiguous character
7f561c08de6b Initial load
duke
parents:
diff changeset
   182
     * data in a single chunk, or they may split it into several
7f561c08de6b Initial load
duke
parents:
diff changeset
   183
     * chunks; however, all of the characters in any single event
7f561c08de6b Initial load
duke
parents:
diff changeset
   184
     * must come from the same external entity, so that the Locator
7f561c08de6b Initial load
duke
parents:
diff changeset
   185
     * provides useful information.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   186
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   187
     * <p>The application must not attempt to read from the array
7f561c08de6b Initial load
duke
parents:
diff changeset
   188
     * outside of the specified range.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   189
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   190
     * <p>Note that some parsers will report whitespace using the
7f561c08de6b Initial load
duke
parents:
diff changeset
   191
     * ignorableWhitespace() method rather than this one (validating
7f561c08de6b Initial load
duke
parents:
diff changeset
   192
     * parsers must do so).</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   193
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   194
     * @param ch The characters from the XML document.
7f561c08de6b Initial load
duke
parents:
diff changeset
   195
     * @param start The start position in the array.
7f561c08de6b Initial load
duke
parents:
diff changeset
   196
     * @param length The number of characters to read from the array.
7f561c08de6b Initial load
duke
parents:
diff changeset
   197
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   198
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   199
     * @see #ignorableWhitespace
7f561c08de6b Initial load
duke
parents:
diff changeset
   200
     * @see org.xml.sax.Locator
7f561c08de6b Initial load
duke
parents:
diff changeset
   201
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   202
    public abstract void characters (char ch[], int start, int length)
7f561c08de6b Initial load
duke
parents:
diff changeset
   203
        throws SAXException;
7f561c08de6b Initial load
duke
parents:
diff changeset
   204
7f561c08de6b Initial load
duke
parents:
diff changeset
   205
7f561c08de6b Initial load
duke
parents:
diff changeset
   206
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   207
     * Receive notification of ignorable whitespace in element content.
7f561c08de6b Initial load
duke
parents:
diff changeset
   208
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   209
     * <p>Validating Parsers must use this method to report each chunk
7f561c08de6b Initial load
duke
parents:
diff changeset
   210
     * of ignorable whitespace (see the W3C XML 1.0 recommendation,
7f561c08de6b Initial load
duke
parents:
diff changeset
   211
     * section 2.10): non-validating parsers may also use this method
7f561c08de6b Initial load
duke
parents:
diff changeset
   212
     * if they are capable of parsing and using content models.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   213
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   214
     * <p>SAX parsers may return all contiguous whitespace in a single
7f561c08de6b Initial load
duke
parents:
diff changeset
   215
     * chunk, or they may split it into several chunks; however, all of
7f561c08de6b Initial load
duke
parents:
diff changeset
   216
     * the characters in any single event must come from the same
7f561c08de6b Initial load
duke
parents:
diff changeset
   217
     * external entity, so that the Locator provides useful
7f561c08de6b Initial load
duke
parents:
diff changeset
   218
     * information.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   219
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   220
     * <p>The application must not attempt to read from the array
7f561c08de6b Initial load
duke
parents:
diff changeset
   221
     * outside of the specified range.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   222
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   223
     * @param ch The characters from the XML document.
7f561c08de6b Initial load
duke
parents:
diff changeset
   224
     * @param start The start position in the array.
7f561c08de6b Initial load
duke
parents:
diff changeset
   225
     * @param length The number of characters to read from the array.
7f561c08de6b Initial load
duke
parents:
diff changeset
   226
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   227
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   228
     * @see #characters
7f561c08de6b Initial load
duke
parents:
diff changeset
   229
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   230
    public abstract void ignorableWhitespace (char ch[], int start, int length)
7f561c08de6b Initial load
duke
parents:
diff changeset
   231
        throws SAXException;
7f561c08de6b Initial load
duke
parents:
diff changeset
   232
7f561c08de6b Initial load
duke
parents:
diff changeset
   233
7f561c08de6b Initial load
duke
parents:
diff changeset
   234
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   235
     * Receive notification of a processing instruction.
7f561c08de6b Initial load
duke
parents:
diff changeset
   236
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   237
     * <p>The Parser will invoke this method once for each processing
7f561c08de6b Initial load
duke
parents:
diff changeset
   238
     * instruction found: note that processing instructions may occur
7f561c08de6b Initial load
duke
parents:
diff changeset
   239
     * before or after the main document element.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   240
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   241
     * <p>A SAX parser should never report an XML declaration (XML 1.0,
7f561c08de6b Initial load
duke
parents:
diff changeset
   242
     * section 2.8) or a text declaration (XML 1.0, section 4.3.1)
7f561c08de6b Initial load
duke
parents:
diff changeset
   243
     * using this method.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   244
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   245
     * @param target The processing instruction target.
7f561c08de6b Initial load
duke
parents:
diff changeset
   246
     * @param data The processing instruction data, or null if
7f561c08de6b Initial load
duke
parents:
diff changeset
   247
     *        none was supplied.
7f561c08de6b Initial load
duke
parents:
diff changeset
   248
     * @exception org.xml.sax.SAXException Any SAX exception, possibly
7f561c08de6b Initial load
duke
parents:
diff changeset
   249
     *            wrapping another exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   250
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   251
    public abstract void processingInstruction (String target, String data)
7f561c08de6b Initial load
duke
parents:
diff changeset
   252
        throws SAXException;
7f561c08de6b Initial load
duke
parents:
diff changeset
   253
7f561c08de6b Initial load
duke
parents:
diff changeset
   254
}
7f561c08de6b Initial load
duke
parents:
diff changeset
   255
7f561c08de6b Initial load
duke
parents:
diff changeset
   256
// end of DocumentHandler.java