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