apidocs / com.srv4pos.commons.io / IOUtils / closeQuietly

closeQuietly

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.

Parameters

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.

Parameters

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.

Parameters

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.

Parameters

output - OutputStream!: the OutputStream to close, may be null or already closed