Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / io / FileOutputStream.js
index b4e873b..621166c 100644 (file)
@@ -1,58 +1,58 @@
-Clazz.load(["java.io.Closeable","$.OutputStream"],"java.io.FileOutputStream",["java.lang.IndexOutOfBoundsException","$.NullPointerException"],function(){\r
-c$=Clazz.decorateAsClass(function(){\r
-this.fd=null;\r
-this.innerFD=false;\r
-Clazz.instantialize(this,arguments);\r
-},java.io,"FileOutputStream",java.io.OutputStream,java.io.Closeable);\r
-Clazz.makeConstructor(c$,\r
-function(file){\r
-this.construct(file,false);\r
-},"java.io.File");\r
-Clazz.makeConstructor(c$,\r
-function(file,append){\r
-Clazz.superConstructor(this,java.io.FileOutputStream);\r
-},"java.io.File,~B");\r
-Clazz.makeConstructor(c$,\r
-function(fd){\r
-Clazz.superConstructor(this,java.io.FileOutputStream);\r
-if(fd==null){\r
-throw new NullPointerException(("K006c"));\r
-}},"java.io.FileDescriptor");\r
-Clazz.makeConstructor(c$,\r
-function(filename){\r
-this.construct(filename,false);\r
-},"~S");\r
-Clazz.makeConstructor(c$,\r
-function(filename,append){\r
-this.construct(Clazz.castNullAs("java.io.File"),append);\r
-},"~S,~B");\r
-Clazz.overrideMethod(c$,"close",\r
-function(){\r
-if(this.fd==null){\r
-return;\r
-}});\r
-Clazz.overrideMethod(c$,"finalize",\r
-function(){\r
-this.close();\r
-});\r
-Clazz.defineMethod(c$,"getFD",\r
-function(){\r
-return this.fd;\r
-});\r
-Clazz.defineMethod(c$,"write",\r
-function(buffer){\r
-this.write(buffer,0,buffer.length);\r
-},"~A");\r
-Clazz.defineMethod(c$,"write",\r
-function(buffer,offset,count){\r
-if(buffer==null){\r
-throw new NullPointerException();\r
-}if(count<0||offset<0||offset>buffer.length||count>buffer.length-offset){\r
-throw new IndexOutOfBoundsException();\r
-}if(count==0){\r
-return;\r
-}},"~A,~N,~N");\r
-Clazz.defineMethod(c$,"write",\r
-function(oneByte){\r
-},"~N");\r
-});\r
+Clazz.load(["java.io.Closeable","$.OutputStream"],"java.io.FileOutputStream",["java.lang.IndexOutOfBoundsException","$.NullPointerException"],function(){
+c$=Clazz.decorateAsClass(function(){
+this.fd=null;
+this.innerFD=false;
+Clazz.instantialize(this,arguments);
+},java.io,"FileOutputStream",java.io.OutputStream,java.io.Closeable);
+Clazz.makeConstructor(c$,
+function(file){
+this.construct(file,false);
+},"java.io.File");
+Clazz.makeConstructor(c$,
+function(file,append){
+Clazz.superConstructor(this,java.io.FileOutputStream);
+},"java.io.File,~B");
+Clazz.makeConstructor(c$,
+function(fd){
+Clazz.superConstructor(this,java.io.FileOutputStream);
+if(fd==null){
+throw new NullPointerException(("K006c"));
+}},"java.io.FileDescriptor");
+Clazz.makeConstructor(c$,
+function(filename){
+this.construct(filename,false);
+},"~S");
+Clazz.makeConstructor(c$,
+function(filename,append){
+this.construct(Clazz.castNullAs("java.io.File"),append);
+},"~S,~B");
+Clazz.overrideMethod(c$,"close",
+function(){
+if(this.fd==null){
+return;
+}});
+Clazz.overrideMethod(c$,"finalize",
+function(){
+this.close();
+});
+Clazz.defineMethod(c$,"getFD",
+function(){
+return this.fd;
+});
+Clazz.defineMethod(c$,"write",
+function(buffer){
+this.write(buffer,0,buffer.length);
+},"~A");
+Clazz.defineMethod(c$,"write",
+function(buffer,offset,count){
+if(buffer==null){
+throw new NullPointerException();
+}if(count<0||offset<0||offset>buffer.length||count>buffer.length-offset){
+throw new IndexOutOfBoundsException();
+}if(count==0){
+return;
+}},"~A,~N,~N");
+Clazz.defineMethod(c$,"write",
+function(oneByte){
+},"~N");
+});