closeQuietly

Unconditionally close an InputStream.

Equivalent to , except any exceptions will be ignored. This is typically used in finally blocks.

Parameters

input

the InputStream to close, may be null or already closed

open fun closeQuietly(input: InputStream)

Unconditionally close an OutputStream.

Equivalent to , except any exceptions will be ignored. This is typically used in finally blocks.

Parameters

output

the OutputStream to close, may be null or already closed

open fun closeQuietly(output: OutputStream)