static fun closeQuietly(input: java.io.InputStream): void
Unconditionally close an InputStream
.
Equivalent to InputStream#close()
, except any exceptions will be ignored. This is typically used in finally blocks.
input
- java.io.InputStream: the InputStream to close, may be null or already closed
static fun closeQuietly(output: java.io.OutputStream): void
Unconditionally close an OutputStream
.
Equivalent to OutputStream#close()
, except any exceptions will be ignored. This is typically used in finally blocks.
output
- java.io.OutputStream: the OutputStream to close, may be null or already closed