20
21 package com.sun.org.apache.xerces.internal.parsers;
22
23 import com.sun.org.apache.xerces.internal.impl.Constants;
24 import com.sun.org.apache.xerces.internal.util.SymbolTable;
25 import com.sun.org.apache.xerces.internal.utils.XMLSecurityManager;
26 import com.sun.org.apache.xerces.internal.utils.XMLSecurityPropertyManager;
27 import com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool;
28 import com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration;
29 import org.xml.sax.SAXNotRecognizedException;
30 import org.xml.sax.SAXNotSupportedException;
31
32 /**
33 * This is the main Xerces SAX parser class. It uses the abstract SAX
34 * parser with a document scanner, a dtd scanner, and a validator, as
35 * well as a grammar pool.
36 *
37 * @author Arnaud Le Hors, IBM
38 * @author Andy Clark, IBM
39 *
40 * @version $Id: SAXParser.java,v 1.7 2010-11-01 04:40:09 joehw Exp $
41 */
42 public class SAXParser
43 extends AbstractSAXParser {
44
45 //
46 // Constants
47 //
48
49 // features
50
51 /** Feature identifier: notify built-in refereces. */
52 protected static final String NOTIFY_BUILTIN_REFS =
53 Constants.XERCES_FEATURE_PREFIX + Constants.NOTIFY_BUILTIN_REFS_FEATURE;
54
55 protected static final String REPORT_WHITESPACE =
56 Constants.SUN_SCHEMA_FEATURE_PREFIX + Constants.SUN_REPORT_IGNORED_ELEMENT_CONTENT_WHITESPACE;
57
58 /** Recognized features. */
59 private static final String[] RECOGNIZED_FEATURES = {
60 NOTIFY_BUILTIN_REFS,
|
20
21 package com.sun.org.apache.xerces.internal.parsers;
22
23 import com.sun.org.apache.xerces.internal.impl.Constants;
24 import com.sun.org.apache.xerces.internal.util.SymbolTable;
25 import com.sun.org.apache.xerces.internal.utils.XMLSecurityManager;
26 import com.sun.org.apache.xerces.internal.utils.XMLSecurityPropertyManager;
27 import com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool;
28 import com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration;
29 import org.xml.sax.SAXNotRecognizedException;
30 import org.xml.sax.SAXNotSupportedException;
31
32 /**
33 * This is the main Xerces SAX parser class. It uses the abstract SAX
34 * parser with a document scanner, a dtd scanner, and a validator, as
35 * well as a grammar pool.
36 *
37 * @author Arnaud Le Hors, IBM
38 * @author Andy Clark, IBM
39 *
40 */
41 public class SAXParser
42 extends AbstractSAXParser {
43
44 //
45 // Constants
46 //
47
48 // features
49
50 /** Feature identifier: notify built-in refereces. */
51 protected static final String NOTIFY_BUILTIN_REFS =
52 Constants.XERCES_FEATURE_PREFIX + Constants.NOTIFY_BUILTIN_REFS_FEATURE;
53
54 protected static final String REPORT_WHITESPACE =
55 Constants.SUN_SCHEMA_FEATURE_PREFIX + Constants.SUN_REPORT_IGNORED_ELEMENT_CONTENT_WHITESPACE;
56
57 /** Recognized features. */
58 private static final String[] RECOGNIZED_FEATURES = {
59 NOTIFY_BUILTIN_REFS,
|