TypeReasonJava.IO.IOExceptionif an error occurs while flushing this writer.
Flushes this writer. The contents of the buffer are committed to the target writer and it is then flushed.
[Android Documentation]