neilg 2003/01/23 12:19:45
Modified: java/external/src/org/xml/sax/helpers Tag: tck-jaxp-1_2_0
DefaultHandler.java
Log:
this "JAXP compliant" code was not JAXP compliant; resolveEntity cannot throw an IOException.
Replacing with Xerces code
Revision Changes Path
No revision
No revision
1.2.6.1 +10 -31 xml-commons/java/external/src/org/xml/sax/helpers/DefaultHandler.java
Index: DefaultHandler.java
===================================================================
RCS file: /home/cvs/xml-commons/java/external/src/org/xml/sax/helpers/DefaultHandler.java,v
retrieving revision 1.2
retrieving revision 1.2.6.1
diff -u -r1.2 -r1.2.6.1
--- DefaultHandler.java 27 Feb 2002 16:04:18 -0000 1.2
+++ DefaultHandler.java 23 Jan 2003 20:19:45 -0000 1.2.6.1
@@ -1,14 +1,11 @@
// DefaultHandler.java - default implementation of the core handlers.
-// http://www.saxproject.org
-// Written by David Megginson
+// Written by David Megginson, sax@megginson.com
// NO WARRANTY! This class is in the public domain.
// $Id$
package org.xml.sax.helpers;
-import java.io.IOException;
-
import org.xml.sax.InputSource;
import org.xml.sax.Locator;
import org.xml.sax.Attributes;
@@ -26,8 +23,6 @@
* <blockquote>
* <em>This module, both source code and documentation, is in the
* Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
- * See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
- * for further information.
* </blockquote>
*
* <p>This class is available as a convenience base class for SAX2
@@ -50,8 +45,9 @@
* {@link org.xml.sax.HandlerBase HandlerBase} class.</p>
*
* @since SAX 2.0
- * @author David Megginson,
- * @version 2.0.1 (sax2r2)
+ * @author David Megginson,
+ * <a href="mailto:sax@megginson.com">sax@megginson.com</a>
+ * @version 2.0
* @see org.xml.sax.EntityResolver
* @see org.xml.sax.DTDHandler
* @see org.xml.sax.ContentHandler
@@ -81,14 +77,12 @@
* document.
* @return The new input source, or null to require the
* default behaviour.
- * @exception java.io.IOException If there is an error setting
- * up the new input source.
* @exception org.xml.sax.SAXException Any SAX exception, possibly
* wrapping another exception.
* @see org.xml.sax.EntityResolver#resolveEntity
*/
public InputSource resolveEntity (String publicId, String systemId)
- throws IOException, SAXException
+ throws SAXException
{
return null;
}
@@ -254,17 +248,8 @@
* each element (such as allocating a new tree node or writing
* output to a file).</p>
*
- * @param uri The Namespace URI, or the empty string if the
- * element has no Namespace URI or if Namespace
- * processing is not being performed.
- * @param localName The local name (without prefix), or the
- * empty string if Namespace processing is not being
- * performed.
- * @param qName The qualified name (with prefix), or the
- * empty string if qualified names are not available.
- * @param atts The attributes attached to the element. If
- * there are no attributes, it shall be an empty
- * Attributes object.
+ * @param name The element type name.
+ * @param attributes The specified or defaulted attributes.
* @exception org.xml.sax.SAXException Any SAX exception, possibly
* wrapping another exception.
* @see org.xml.sax.ContentHandler#startElement
@@ -285,14 +270,8 @@
* each element (such as finalising a tree node or writing
* output to a file).</p>
*
- * @param uri The Namespace URI, or the empty string if the
- * element has no Namespace URI or if Namespace
- * processing is not being performed.
- * @param localName The local name (without prefix), or the
- * empty string if Namespace processing is not being
- * performed.
- * @param qName The qualified name (with prefix), or the
- * empty string if qualified names are not available.
+ * @param name The element type name.
+ * @param attributes The specified or defaulted attributes.
* @exception org.xml.sax.SAXException Any SAX exception, possibly
* wrapping another exception.
* @see org.xml.sax.ContentHandler#endElement
|