Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / java / io / Writer.js
index 1401dd2..9fe946d 100644 (file)
@@ -1,68 +1,68 @@
-Clazz.load(["java.io.Closeable","$.Flushable","java.lang.Appendable"],"java.io.Writer",["java.lang.NullPointerException","$.StringIndexOutOfBoundsException"],function(){\r
-c$=Clazz.decorateAsClass(function(){\r
-this.lock=null;\r
-Clazz.instantialize(this,arguments);\r
-},java.io,"Writer",null,[Appendable,java.io.Closeable,java.io.Flushable]);\r
-Clazz.makeConstructor(c$,\r
-function(){\r
-this.lock=this;\r
-});\r
-Clazz.makeConstructor(c$,\r
-function(lock){\r
-if(lock!=null){\r
-this.lock=lock;\r
-}else{\r
-throw new NullPointerException();\r
-}},"~O");\r
-Clazz.defineMethod(c$,"write",\r
-function(buf){\r
-this.write(buf,0,buf.length);\r
-},"~A");\r
-Clazz.defineMethod(c$,"write",\r
-function(oneChar){\r
-{\r
-var oneCharArray=Clazz.newArray(1,'\0');\r
-oneCharArray[0]=String.fromCharCode(oneChar);\r
-this.write(oneCharArray);\r
-}},"~N");\r
-Clazz.defineMethod(c$,"write",\r
-function(str){\r
-var buf=Clazz.newArray(str.length,'\0');\r
-str.getChars(0,buf.length,buf,0);\r
-{\r
-this.write(buf);\r
-}},"~S");\r
-Clazz.defineMethod(c$,"write",\r
-function(str,offset,count){\r
-if(count>=0){\r
-var buf=Clazz.newArray(count,'\0');\r
-str.getChars(offset,offset+count,buf,0);\r
-{\r
-this.write(buf);\r
-}}else{\r
-throw new StringIndexOutOfBoundsException();\r
-}},"~S,~N,~N");\r
-Clazz.defineMethod(c$,"append",\r
-function(c){\r
-this.write(c.charCodeAt(0));\r
-return this;\r
-},"~N");\r
-Clazz.defineMethod(c$,"append",\r
-function(csq){\r
-if(null==csq){\r
-this.write("null");\r
-}else{\r
-this.write(csq.toString());\r
-}return this;\r
-},"CharSequence");\r
-Clazz.defineMethod(c$,"append",\r
-function(csq,start,end){\r
-if(null==csq){\r
-this.write("null".substring(start,end));\r
-}else{\r
-this.write(csq.subSequence(start,end).toString());\r
-}return this;\r
-},"CharSequence,~N,~N");\r
-Clazz.defineStatics(c$,\r
-"TOKEN_NULL","null");\r
-});\r
+Clazz.load(["java.io.Closeable","$.Flushable","java.lang.Appendable"],"java.io.Writer",["java.lang.NullPointerException","$.StringIndexOutOfBoundsException"],function(){
+c$=Clazz.decorateAsClass(function(){
+this.lock=null;
+Clazz.instantialize(this,arguments);
+},java.io,"Writer",null,[Appendable,java.io.Closeable,java.io.Flushable]);
+Clazz.makeConstructor(c$,
+function(){
+this.lock=this;
+});
+Clazz.makeConstructor(c$,
+function(lock){
+if(lock!=null){
+this.lock=lock;
+}else{
+throw new NullPointerException();
+}},"~O");
+Clazz.defineMethod(c$,"write",
+function(buf){
+this.write(buf,0,buf.length);
+},"~A");
+Clazz.defineMethod(c$,"write",
+function(oneChar){
+{
+var oneCharArray=Clazz.newArray(1,'\0');
+oneCharArray[0]=String.fromCharCode(oneChar);
+this.write(oneCharArray);
+}},"~N");
+Clazz.defineMethod(c$,"write",
+function(str){
+var buf=Clazz.newArray(str.length,'\0');
+str.getChars(0,buf.length,buf,0);
+{
+this.write(buf);
+}},"~S");
+Clazz.defineMethod(c$,"write",
+function(str,offset,count){
+if(count>=0){
+var buf=Clazz.newArray(count,'\0');
+str.getChars(offset,offset+count,buf,0);
+{
+this.write(buf);
+}}else{
+throw new StringIndexOutOfBoundsException();
+}},"~S,~N,~N");
+Clazz.defineMethod(c$,"append",
+function(c){
+this.write(c.charCodeAt(0));
+return this;
+},"~N");
+Clazz.defineMethod(c$,"append",
+function(csq){
+if(null==csq){
+this.write("null");
+}else{
+this.write(csq.toString());
+}return this;
+},"CharSequence");
+Clazz.defineMethod(c$,"append",
+function(csq,start,end){
+if(null==csq){
+this.write("null".substring(start,end));
+}else{
+this.write(csq.subSequence(start,end).toString());
+}return this;
+},"CharSequence,~N,~N");
+Clazz.defineStatics(c$,
+"TOKEN_NULL","null");
+});