- buffer
- the array containing characters to write.
- offset
- the index of the first character in buf to write.
- count
- the maximum number of characters to write.
Type Reason Java.Lang.IndexOutOfBoundsException if offset or count , or if offset + count is greater than the size of buf. Java.IO.IOException if this writer has already been closed or another I/O error occurs.
Writes count characters starting at offset in buf to this writer. The characters are immediately converted to bytes by the character converter and stored in a local buffer. If the buffer gets full as a result of the conversion, this writer is flushed.