xml-commons External Source Code Files

xml-commons External Source Code Files are provided in the source package file, xml-commons-external-1.4.01-src.zip.

You can download xml-commons-external-1.4.01-src.zip as described in the previous tutorial

You can also browse xml-commons External Source Code below:

✍: FYIcenter

org/w3c/css/sac/helpers/ParserFactory.java

/*
 * Copyright (c) 1999 World Wide Web Consortium,
 * (Massachusetts Institute of Technology, Institut National de
 * Recherche en Informatique et en Automatique, Keio University). All
 * Rights Reserved. This program is distributed under the W3C's Software
 * Intellectual Property License. This program is distributed in the
 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE.
 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
 *
 * $Id: ParserFactory.java 477010 2006-11-20 02:54:38Z mrglavas $
 */
package org.w3c.css.sac.helpers;

import org.w3c.css.sac.Parser;

/**
 * @version $Revision: 477010 $
 * @author  Philippe Le Hegaret
 */
public class ParserFactory {
    
    /**
     * Create a parser with given selectors factory and conditions factory.
     */    
    public Parser makeParser()
	throws ClassNotFoundException,
	       IllegalAccessException, 
	       InstantiationException,
 	       NullPointerException,
	       ClassCastException {
	String className = System.getProperty("org.w3c.css.sac.parser");
	if (className == null) {
	    throw new NullPointerException("No value for sac.parser property");
	} else {
	    return (Parser)(Class.forName(className).newInstance());
	}
    }
}

org/w3c/css/sac/helpers/ParserFactory.java

 

 

Donwload xml-commons-external-1.3.05-bin.zip

Download and Install xml-commons External Source Package

Downloading Apache xml-commons

⇑⇑ FAQ for Apache Xerces XML Parser

2009-01-25, 13242👍, 0💬