public class Closeables extends Object
Constructor and Description |
---|
Closeables() |
Modifier and Type | Method and Description |
---|---|
static void |
closeQuietly(Closeable closeable)
Quietly close a
Closeable , logging any IOException s instead of throwing them. |
public static void closeQuietly(@Nullable Closeable closeable)
Closeable
, logging any IOException
s instead of throwing them.closeable
- The Closeable
to close quietly. If null
, then this method is a no-op.Copyright © 2016–2022. All rights reserved.