TypeReasonJava.IO.IOExceptionif an error occurs while flushing the target stream.
Flushes the target stream. Implementations of this method should ensure that any pending writes are written out to the target stream.
[Android Documentation]