Package org.frankframework.util
Class CloseUtils
java.lang.Object
org.frankframework.util.CloseUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcloseSilently(AutoCloseable closeable) Safely close anAutoCloseable, logging but ignoring any exceptions thrown.static voidcloseSilently(AutoCloseable... closeables) Safely close allAutoCloseables, logging but ignoring any exceptions thrown.static voidcloseSilently(Collection<? extends AutoCloseable> closeables) Safely close allAutoCloseables, logging but ignoring any exceptions thrown.static InputStreamdontClose(InputStream stream) static OutputStreamdontClose(OutputStream stream) static Reader
-
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 allAutoCloseables, logging but ignoring any exceptions thrown.- Parameters:
closeables- AutoCloseables to close. It is safe to passnullvalues.
-
closeSilently
Safely close allAutoCloseables, logging but ignoring any exceptions thrown.- Parameters:
closeables- AutoCloseables to close. It is safe to passnull, or for the collection to containnullvalues.
-
dontClose
-
dontClose
-
dontClose
-