acad95f02a537ff06a9fd29c5ffaeef73d0fcfd8
[jalviewjs.git] / site / j2s / org / xml / sax / helpers / ParserFactory.js
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", 
5 function () {
6 var className = System.getProperty ("org.xml.sax.parser");
7 if (className == null) {
8 throw  new NullPointerException ("No value for sax.parser property");
9 } else {
10 return org.xml.sax.helpers.ParserFactory.makeParser (className);
11 }});
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);
15 }, "~S");
16 });