1 Clazz.load(["java.io.Closeable","$.OutputStream"],"java.io.FileOutputStream",["java.lang.IndexOutOfBoundsException","$.NullPointerException"],function(){
\r
2 c$=Clazz.decorateAsClass(function(){
\r
5 Clazz.instantialize(this,arguments);
\r
6 },java.io,"FileOutputStream",java.io.OutputStream,java.io.Closeable);
\r
7 Clazz.makeConstructor(c$,
\r
9 this.construct(file,false);
\r
11 Clazz.makeConstructor(c$,
\r
12 function(file,append){
\r
13 Clazz.superConstructor(this,java.io.FileOutputStream);
\r
14 },"java.io.File,~B");
\r
15 Clazz.makeConstructor(c$,
\r
17 Clazz.superConstructor(this,java.io.FileOutputStream);
\r
19 throw new NullPointerException(("K006c"));
\r
20 }},"java.io.FileDescriptor");
\r
21 Clazz.makeConstructor(c$,
\r
23 this.construct(filename,false);
\r
25 Clazz.makeConstructor(c$,
\r
26 function(filename,append){
\r
27 this.construct(Clazz.castNullAs("java.io.File"),append);
\r
29 Clazz.overrideMethod(c$,"close",
\r
34 Clazz.overrideMethod(c$,"finalize",
\r
38 Clazz.defineMethod(c$,"getFD",
\r
42 Clazz.defineMethod(c$,"write",
\r
44 this.write(buffer,0,buffer.length);
\r
46 Clazz.defineMethod(c$,"write",
\r
47 function(buffer,offset,count){
\r
49 throw new NullPointerException();
\r
50 }if(count<0||offset<0||offset>buffer.length||count>buffer.length-offset){
\r
51 throw new IndexOutOfBoundsException();
\r
55 Clazz.defineMethod(c$,"write",
\r