Hi,
Please find patch attatched for SAXParser.
SAXParser as of now doesn't provide any way of instantiating it with custom
parser configuration. I dont think why SAXParser can't be used for user defined
configurations and it should be devoid of such functionality. I have added the
constructor for same.
regards
Neeraj Bajaj
---------------------
Sun Microsystems, inc.
Ph.91-80-2298989 x87425.
Index: SAXParser.java
===================================================================
RCS file:
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/parsers/SAXParser.java,v
retrieving revision 1.23
diff -u -r1.23 SAXParser.java
--- SAXParser.java 2001/08/23 00:35:31 1.23
+++ SAXParser.java 2001/10/22 15:44:30
@@ -2,7 +2,7 @@
* The Apache Software License, Version 1.1
*
*
- * Copyright (c) 2000 The Apache Software Foundation. All rights
+ * Copyright (c) 2000 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -10,7 +10,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
@@ -18,7 +18,7 @@
* distribution.
*
* 3. The end-user documentation included with the redistribution,
- * if any, must include the following acknowledgment:
+ * if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
@@ -26,7 +26,7 @@
*
* 4. The names "Xerces" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
- * software without prior written permission. For written
+ * software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache",
@@ -63,14 +63,14 @@
/**
* This is the main Xerces SAX parser class. It uses the abstract SAX
- * parser with a document scanner, a dtd scanner, and a validator, as
+ * parser with a document scanner, a dtd scanner, and a validator, as
* well as a grammar pool.
*
* @author Stubs generated by DesignDoc on Mon Sep 11 11:10:57 PDT 2000
* @author Arnaud Le Hors, IBM
* @author Andy Clark, IBM
*
- * @version $Id: SAXParser.java,v 1.23 2001/08/23 00:35:31 lehors Exp $
+ * @version $Id: SAXParser.java,v 1.23 2001/08/23 00:35:31 lehors Exp $
*/
public class SAXParser
extends AbstractSAXParser {
@@ -99,6 +99,13 @@
*/
public SAXParser(SymbolTable symbolTable, GrammarPool grammarPool) {
super(new StandardParserConfiguration(symbolTable, grammarPool));
+ }
+
+ /**
+ * Constructs a SAX parser using the specified parser configuration.
+ */
+ public SAXParser(XMLParserConfiguration parserConfig) {
+ super(parserConfig);
}
} // class SAXParser
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]