public final class IOUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
closeQuietly(java.io.Closeable closeable)
Invokes the
Closeable.close() method on the given object. |
public static void closeQuietly(java.io.Closeable closeable)
Closeable.close()
method on the given object. If an IOException
occurs during the
method call, it will be caught and logged on level Level.WARNING
.closeable
- the data source which should be closed (may be null).