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 Sat, 17 Feb 2001 00:17:42 GMT
edwingo     01/02/16 16:17:42

  Modified:    java/src/org/apache/xerces/jaxp Tag: xerces_j_2
                        SAXParserImpl.java
  Log:
  Instantiate a xerces SAXParser directly and not through SAX so that we use
  the right ClassLoader
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.4.5   +5 -8      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.1.4.4
  retrieving revision 1.1.4.5
  diff -u -r1.1.4.4 -r1.1.4.5
  --- SAXParserImpl.java	2001/02/14 18:29:19	1.1.4.4
  +++ SAXParserImpl.java	2001/02/17 00:17:41	1.1.4.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: SAXParserImpl.java,v 1.1.4.4 2001/02/14 18:29:19 lehors Exp $
  + * $Id: SAXParserImpl.java,v 1.1.4.5 2001/02/17 00:17:41 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;
  @@ -84,11 +83,7 @@
    * 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;
  @@ -103,7 +98,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