public final class Closeables extends Object
Closeables| Modifier and Type | Method and Description |
|---|---|
static void |
closeLoggingExceptions(Closeable c)
Closes
c logging any IOException as warning via this class' logger. |
static void |
closeLoggingExceptions(Closeable c,
org.slf4j.Logger logger)
Closes
c logging any IOException via the specified logger. |
static void |
closeSilently(Closeable c)
Closes
c ignoring any IOExceptions. |
public static void closeSilently(Closeable c)
c ignoring any IOExceptions.public static void closeLoggingExceptions(Closeable c)
c logging any IOException as warning via this class' logger.public static void closeLoggingExceptions(Closeable c, org.slf4j.Logger logger)
c logging any IOException via the specified logger.Copyright © 2022 Apache Software Foundation. All rights reserved.