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