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. |
static void |
closeQuietly(java.net.Socket closeable) |
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.closeable - the data source which should be closed (may be null).public static void closeQuietly(java.net.Socket closeable)