TypeReasonJava.IO.IOExceptionif an error occurs while flushing this writer.
Flushes this writer. This implementation ensures that all buffered bytes are written to the target stream. After writing the bytes, the target stream is flushed as well.
[Android Documentation]