Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / io / StringWriter.js
index ec304af..a1dcb59 100644 (file)
@@ -1,82 +1,82 @@
-Clazz.load(["java.io.Writer"],"java.io.StringWriter",["java.lang.IllegalArgumentException","$.IndexOutOfBoundsException","$.StringBuffer"],function(){\r
-c$=Clazz.decorateAsClass(function(){\r
-this.buf=null;\r
-Clazz.instantialize(this,arguments);\r
-},java.io,"StringWriter",java.io.Writer);\r
-Clazz.makeConstructor(c$,\r
-function(){\r
-Clazz.superConstructor(this,java.io.StringWriter);\r
-this.buf=new StringBuffer(16);\r
-this.lock=this.buf;\r
-});\r
-Clazz.makeConstructor(c$,\r
-function(initialSize){\r
-Clazz.superConstructor(this,java.io.StringWriter,[]);\r
-if(initialSize>=0){\r
-this.buf=new StringBuffer(initialSize);\r
-this.lock=this.buf;\r
-}else{\r
-throw new IllegalArgumentException();\r
-}},"~N");\r
-Clazz.overrideMethod(c$,"close",\r
-function(){\r
-});\r
-Clazz.overrideMethod(c$,"flush",\r
-function(){\r
-});\r
-Clazz.defineMethod(c$,"getBuffer",\r
-function(){\r
-{\r
-return this.buf;\r
-}});\r
-Clazz.overrideMethod(c$,"toString",\r
-function(){\r
-{\r
-return this.buf.toString();\r
-}});\r
-Clazz.defineMethod(c$,"write",\r
-function(cbuf,offset,count){\r
-if(0<=offset&&offset<=cbuf.length&&0<=count&&count<=cbuf.length-offset){\r
-{\r
-this.buf.append(cbuf,offset,count);\r
-}}else{\r
-throw new IndexOutOfBoundsException();\r
-}},"~A,~N,~N");\r
-Clazz.defineMethod(c$,"write",\r
-function(oneChar){\r
-{\r
-this.buf.append(String.fromCharCode(oneChar));\r
-}},"~N");\r
-Clazz.defineMethod(c$,"write",\r
-function(str){\r
-{\r
-this.buf.append(str);\r
-}},"~S");\r
-Clazz.defineMethod(c$,"write",\r
-function(str,offset,count){\r
-var sub=str.substring(offset,offset+count);\r
-{\r
-this.buf.append(sub);\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.append("null",0,"null".length);\r
-}else{\r
-this.append(csq,0,csq.length());\r
-}return this;\r
-},"CharSequence");\r
-Clazz.defineMethod(c$,"append",\r
-function(csq,start,end){\r
-if(null==csq){\r
-csq="null";\r
-}var output=csq.subSequence(start,end).toString();\r
-this.write(output,0,output.length);\r
-return this;\r
-},"CharSequence,~N,~N");\r
-});\r
+Clazz.load(["java.io.Writer"],"java.io.StringWriter",["java.lang.IllegalArgumentException","$.IndexOutOfBoundsException","$.StringBuffer"],function(){
+c$=Clazz.decorateAsClass(function(){
+this.buf=null;
+Clazz.instantialize(this,arguments);
+},java.io,"StringWriter",java.io.Writer);
+Clazz.makeConstructor(c$,
+function(){
+Clazz.superConstructor(this,java.io.StringWriter);
+this.buf=new StringBuffer(16);
+this.lock=this.buf;
+});
+Clazz.makeConstructor(c$,
+function(initialSize){
+Clazz.superConstructor(this,java.io.StringWriter,[]);
+if(initialSize>=0){
+this.buf=new StringBuffer(initialSize);
+this.lock=this.buf;
+}else{
+throw new IllegalArgumentException();
+}},"~N");
+Clazz.overrideMethod(c$,"close",
+function(){
+});
+Clazz.overrideMethod(c$,"flush",
+function(){
+});
+Clazz.defineMethod(c$,"getBuffer",
+function(){
+{
+return this.buf;
+}});
+Clazz.overrideMethod(c$,"toString",
+function(){
+{
+return this.buf.toString();
+}});
+Clazz.defineMethod(c$,"write",
+function(cbuf,offset,count){
+if(0<=offset&&offset<=cbuf.length&&0<=count&&count<=cbuf.length-offset){
+{
+this.buf.append(cbuf,offset,count);
+}}else{
+throw new IndexOutOfBoundsException();
+}},"~A,~N,~N");
+Clazz.defineMethod(c$,"write",
+function(oneChar){
+{
+this.buf.append(String.fromCharCode(oneChar));
+}},"~N");
+Clazz.defineMethod(c$,"write",
+function(str){
+{
+this.buf.append(str);
+}},"~S");
+Clazz.defineMethod(c$,"write",
+function(str,offset,count){
+var sub=str.substring(offset,offset+count);
+{
+this.buf.append(sub);
+}},"~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.append("null",0,"null".length);
+}else{
+this.append(csq,0,csq.length());
+}return this;
+},"CharSequence");
+Clazz.defineMethod(c$,"append",
+function(csq,start,end){
+if(null==csq){
+csq="null";
+}var output=csq.subSequence(start,end).toString();
+this.write(output,0,output.length);
+return this;
+},"CharSequence,~N,~N");
+});