TypeReasonJava.IO.IOExceptionif an error occurs while writing to the target stream.
Writes buffered data to the target stream. This is similar to flush but the flush is not propagated to the target stream.
[Android Documentation]