public final class IOUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
closeQuietly(java.io.InputStream closeable) |
static void |
closeQuietly(java.io.OutputStream closeable)
Invokes the
Closeable.close() method on the given object. |
public static void closeQuietly(java.io.OutputStream 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).public static void closeQuietly(java.io.InputStream closeable)