TypeReasonJava.IO.IOExceptionif an error occurs while closing this writer.
Closes this writer. The contents of the buffer are flushed, the target writer is closed, and the buffer is released. Only the first invocation of close has any effect.
[Android Documentation]