1 Clazz.declarePackage ("org.xml.sax.helpers");
2 Clazz.load (null, "org.xml.sax.helpers.ParserFactory", ["java.lang.NullPointerException", "org.xml.sax.helpers.NewInstance"], function () {
3 c$ = Clazz.declareType (org.xml.sax.helpers, "ParserFactory");
4 c$.makeParser = Clazz.defineMethod (c$, "makeParser",
6 var className = System.getProperty ("org.xml.sax.parser");
7 if (className == null) {
8 throw new NullPointerException ("No value for sax.parser property");
10 return org.xml.sax.helpers.ParserFactory.makeParser (className);
12 c$.makeParser = Clazz.defineMethod (c$, "makeParser",
13 function (className) {
14 return org.xml.sax.helpers.NewInstance.newInstance (org.xml.sax.helpers.NewInstance.getClassLoader (), className);