xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwi...@apache.org
Subject cvs commit: xml-xerces/java/src/org/apache/xerces/jaxp SAXParserImpl.java
Date Wed, 21 Feb 2001 00:00:32 GMT
edwingo     01/02/20 16:00:32

  Modified:    java/src/org/apache/xerces/jaxp SAXParserImpl.java
  Log:
  Merged Xerces2 fix
  
  Revision  Changes    Path
  1.6       +6 -9      xml-xerces/java/src/org/apache/xerces/jaxp/SAXParserImpl.java
  
  Index: SAXParserImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/jaxp/SAXParserImpl.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- SAXParserImpl.java	2001/02/13 03:27:57	1.5
  +++ SAXParserImpl.java	2001/02/21 00:00:31	1.6
  @@ -1,5 +1,5 @@
   /*
  - * $Id: SAXParserImpl.java,v 1.5 2001/02/13 03:27:57 edwingo Exp $
  + * $Id: SAXParserImpl.java,v 1.6 2001/02/21 00:00:31 edwingo Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -67,7 +67,6 @@
   import org.xml.sax.HandlerBase;
   import org.xml.sax.Parser;
   import org.xml.sax.XMLReader;
  -import org.xml.sax.helpers.XMLReaderFactory;
   import org.xml.sax.helpers.XMLReaderAdapter;
   import org.xml.sax.helpers.DefaultHandler;
   import org.xml.sax.SAXNotRecognizedException;
  @@ -78,18 +77,14 @@
   /**
    * @author Rajiv Mordani
    * @author Edwin Goei
  - * @version $Revision: 1.5 $
  + * @version $Revision: 1.6 $
    */
   
   /**
    * This is the implementation specific class for the
    * <code>javax.xml.parsers.SAXParser</code>. 
    */
  -public class SAXParserImpl extends SAXParser {
  -    /** Default parser name. */
  -    static final String DEFAULT_PARSER_NAME =
  -                                    "org.apache.xerces.parsers.SAXParser";
  -
  +public class SAXParserImpl extends javax.xml.parsers.SAXParser {
       private SAXParserFactory spf = null;
       private XMLReader xmlReader;
       private Parser parser = null;
  @@ -104,7 +99,9 @@
       SAXParserImpl(SAXParserFactory spf, Hashtable features)
           throws SAXException
       {
  -        xmlReader = XMLReaderFactory.createXMLReader(DEFAULT_PARSER_NAME);
  +        // Instantiate a SAXParser directly and not through SAX so that we
  +        // use the right ClassLoader
  +        xmlReader = new org.apache.xerces.parsers.SAXParser();
   
           // Validation
           validating = spf.isValidating();
  
  
  

Mime
View raw message