bufthe non-null array containing characters to write.
TypeReasonJava.IO.IOExceptionif this writer is closed or another I/O error occurs.
Writes the entire character buffer buf to the target.
[Android Documentation]