Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / javax / xml / parsers / SAXParserFactory.js
index 02b241d..0f03186 100644 (file)
@@ -1,32 +1,32 @@
-Clazz.declarePackage ("javax.xml.parsers");\r
-Clazz.load (null, "javax.xml.parsers.SAXParserFactory", ["java.lang.NullPointerException"], function () {\r
-c$ = Clazz.declareType (javax.xml.parsers, "SAXParserFactory");\r
-c$.newInstance = Clazz.defineMethod (c$, "newInstance", \r
-function () {\r
-return  new javax.xml.parsers.SAXParserFactory ();\r
-});\r
-Clazz.defineMethod (c$, "newSAXParser", \r
-function () {\r
-try {\r
-return javax.xml.parsers.SAXParserFactory.makeParser ();\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, Exception)) {\r
-return null;\r
-} else {\r
-throw e;\r
-}\r
-}\r
-});\r
-c$.makeParser = Clazz.defineMethod (c$, "makeParser", \r
-function () {\r
-var className = System.getProperty ("org.xml.sax.parser", "swingjs.JSSAXParser");\r
-if (className == null) {\r
-throw  new NullPointerException ("No value for sax.parser property");\r
-} else {\r
-return javax.xml.parsers.SAXParserFactory.makeParser (className);\r
-}});\r
-c$.makeParser = Clazz.defineMethod (c$, "makeParser", \r
-function (className) {\r
-return (Clazz._4Name (className).newInstance ());\r
-}, "~S");\r
-});\r
+Clazz.declarePackage ("javax.xml.parsers");
+Clazz.load (null, "javax.xml.parsers.SAXParserFactory", ["java.lang.NullPointerException"], function () {
+c$ = Clazz.declareType (javax.xml.parsers, "SAXParserFactory");
+c$.newInstance = Clazz.defineMethod (c$, "newInstance", 
+function () {
+return  new javax.xml.parsers.SAXParserFactory ();
+});
+Clazz.defineMethod (c$, "newSAXParser", 
+function () {
+try {
+return javax.xml.parsers.SAXParserFactory.makeParser ();
+} catch (e) {
+if (Clazz.exceptionOf (e, Exception)) {
+return null;
+} else {
+throw e;
+}
+}
+});
+c$.makeParser = Clazz.defineMethod (c$, "makeParser", 
+function () {
+var className = System.getProperty ("org.xml.sax.parser", "swingjs.JSSAXParser");
+if (className == null) {
+throw  new NullPointerException ("No value for sax.parser property");
+} else {
+return javax.xml.parsers.SAXParserFactory.makeParser (className);
+}});
+c$.makeParser = Clazz.defineMethod (c$, "makeParser", 
+function (className) {
+return (Clazz._4Name (className).newInstance ());
+}, "~S");
+});