public void write(char[] buf) throws IOException {
  if (writer != null) {
    writer.write(buf);
  }
 else {
    write(buf,0,buf.length);
  }
}

public void write ( char [ ] buf ) throws IOException { if ( writer != null ) { writer . write ( buf ) ; } else { write ( buf , 0 , buf . length ) ; } }
write an array of characters . this method cannot be inherited from the writer class because it must suppress i / o exceptions .
