1 57 58 package com.sun.org.apache.xerces.internal.parsers; 59 60 import com.sun.org.apache.xerces.internal.impl.Constants; 61 import com.sun.org.apache.xerces.internal.util.SymbolTable; 62 import com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool; 63 import com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration; 64 65 75 public class XMLDocumentParser 76 extends AbstractXMLDocumentParser { 77 78 82 86 public XMLDocumentParser() { 87 super((XMLParserConfiguration)ObjectFactory.createObject( 88 "com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration", 89 "com.sun.org.apache.xerces.internal.parsers.XML11Configuration" 90 )); 91 } 93 96 public XMLDocumentParser(XMLParserConfiguration config) { 97 super(config); 98 } 100 103 public XMLDocumentParser(SymbolTable symbolTable) { 104 super((XMLParserConfiguration)ObjectFactory.createObject( 105 "com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration", 106 "com.sun.org.apache.xerces.internal.parsers.XML11Configuration" 107 )); 108 fConfiguration.setProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.SYMBOL_TABLE_PROPERTY, symbolTable); 109 } 111 115 public XMLDocumentParser(SymbolTable symbolTable, 116 XMLGrammarPool grammarPool) { 117 super((XMLParserConfiguration)ObjectFactory.createObject( 118 "com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration", 119 "com.sun.org.apache.xerces.internal.parsers.XML11Configuration" 120 )); 121 fConfiguration.setProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.SYMBOL_TABLE_PROPERTY, symbolTable); 122 fConfiguration.setProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.XMLGRAMMAR_POOL_PROPERTY, grammarPool); 123 } 124 125 } | Popular Tags |