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