Package org.frankframework.util
Class CloseUtils
java.lang.Object
org.frankframework.util.CloseUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
closeSilently
(AutoCloseable closeable) Safely close anAutoCloseable
, logging but ignoring any exceptions thrown.static void
closeSilently
(AutoCloseable... closeables) Safely close allAutoCloseable
s, logging but ignoring any exceptions thrown.static void
closeSilently
(Collection<AutoCloseable> closeables) Safely close allAutoCloseable
s, logging but ignoring any exceptions thrown.
-
Method Details
-
closeSilently
Safely close anAutoCloseable
, logging but ignoring any exceptions thrown.- Parameters:
closeable
- AutoCloseable to close. It is safe to passnull
.
-
closeSilently
Safely close allAutoCloseable
s, logging but ignoring any exceptions thrown.- Parameters:
closeables
- AutoCloseables to close. It is safe to passnull
values.
-
closeSilently
Safely close allAutoCloseable
s, logging but ignoring any exceptions thrown.- Parameters:
closeables
- AutoCloseables to close. It is safe to passnull
, or for the collection to containnull
values.
-