com.sun.org.apache.xerces.internal.util.XMLGrammarPoolImpl Java Examples

The following examples show how to use com.sun.org.apache.xerces.internal.util.XMLGrammarPoolImpl. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GrammarPreParser.java    From jumbune with GNU Lesser General Public License v3.0 6 votes vote down vote up
public synchronized XMLGrammarPoolImpl loadCache(String schemaURI) {
	grammarPool = new XMLGrammarPoolImpl();
	
	XMLGrammarPreparser preparser = new XMLGrammarPreparser();
	preparser.registerPreparser(XMLGrammarDescription.XML_SCHEMA, null);
	preparser.setProperty(GRAMMAR_POOL, grammarPool);
	preparser.setFeature("http://xml.org/sax/features/validation", true);
	preparser.setFeature("http://apache.org/xml/features/validation/schema", true);
	// parse the grammar...

	try {
		preparser.preparseGrammar(XMLGrammarDescription.XML_SCHEMA, new XMLInputSource(null,schemaURI, null));
	} catch (XNIException xe) {
		LOGGER.error(xe);
	} catch (IOException ioe) {
		LOGGER.error(ioe);
	}
	return grammarPool;

}
 
Example #2
Source File: CachingParserPool.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
/** Default constructor. */
public CachingParserPool() {
    this(new SymbolTable(), new XMLGrammarPoolImpl());
}
 
Example #3
Source File: CachingParserPool.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/** Default constructor. */
public CachingParserPool() {
    this(new SymbolTable(), new XMLGrammarPoolImpl());
}
 
Example #4
Source File: CachingParserPool.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/** Default constructor. */
public CachingParserPool() {
    this(new SymbolTable(), new XMLGrammarPoolImpl());
}
 
Example #5
Source File: CachingParserPool.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
/** Default constructor. */
public CachingParserPool() {
    this(new SymbolTable(), new XMLGrammarPoolImpl());
}
 
Example #6
Source File: CachingParserPool.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/** Default constructor. */
public CachingParserPool() {
    this(new SymbolTable(), new XMLGrammarPoolImpl());
}
 
Example #7
Source File: CachingParserPool.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/** Default constructor. */
public CachingParserPool() {
    this(new SymbolTable(), new XMLGrammarPoolImpl());
}
 
Example #8
Source File: CachingParserPool.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
/** Default constructor. */
public CachingParserPool() {
    this(new SymbolTable(), new XMLGrammarPoolImpl());
}
 
Example #9
Source File: CachingParserPool.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/** Default constructor. */
public CachingParserPool() {
    this(new SymbolTable(), new XMLGrammarPoolImpl());
}
 
Example #10
Source File: CachingParserPool.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/** Default constructor. */
public CachingParserPool() {
    this(new SymbolTable(), new XMLGrammarPoolImpl());
}
 
Example #11
Source File: CachingParserPool.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/** Default constructor. */
public CachingParserPool() {
    this(new SymbolTable(), new XMLGrammarPoolImpl());
}
 
Example #12
Source File: CachingParserPool.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/** Default constructor. */
public CachingParserPool() {
    this(new SymbolTable(), new XMLGrammarPoolImpl());
}