public void writeTo(Writer out) throws IOException {
  out.write(buf,0,count);
}

public void writeTo ( Writer out ) throws IOException { out . write ( buf , 0 , count ) ; }
writes the contents of the buffer to another character stream .
