1 Clazz.load(["java.io.Closeable","$.Flushable","java.lang.Appendable"],"java.io.Writer",["java.lang.NullPointerException","$.StringIndexOutOfBoundsException"],function(){
2 c$=Clazz.decorateAsClass(function(){
4 Clazz.instantialize(this,arguments);
5 },java.io,"Writer",null,[Appendable,java.io.Closeable,java.io.Flushable]);
6 Clazz.makeConstructor(c$,
10 Clazz.makeConstructor(c$,
15 throw new NullPointerException();
17 Clazz.defineMethod(c$,"write",
19 this.write(buf,0,buf.length);
21 Clazz.defineMethod(c$,"write",
24 var oneCharArray=Clazz.newArray(1,'\0');
25 oneCharArray[0]=String.fromCharCode(oneChar);
26 this.write(oneCharArray);
28 Clazz.defineMethod(c$,"write",
30 var buf=Clazz.newArray(str.length,'\0');
31 str.getChars(0,buf.length,buf,0);
35 Clazz.defineMethod(c$,"write",
36 function(str,offset,count){
38 var buf=Clazz.newArray(count,'\0');
39 str.getChars(offset,offset+count,buf,0);
43 throw new StringIndexOutOfBoundsException();
45 Clazz.defineMethod(c$,"append",
47 this.write(c.charCodeAt(0));
50 Clazz.defineMethod(c$,"append",
55 this.write(csq.toString());
58 Clazz.defineMethod(c$,"append",
59 function(csq,start,end){
61 this.write("null".substring(start,end));
63 this.write(csq.subSequence(start,end).toString());
65 },"CharSequence,~N,~N");
66 Clazz.defineStatics(c$,