Package com.saperion.common.io
Class Closeables
- java.lang.Object
-
- com.saperion.common.io.Closeables
-
public final class Closeables extends java.lang.Object
This class contains utility-methods for instances ofAutoCloseable
.- Author:
- cmerkel
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
closeQuietly(java.lang.AutoCloseable autoCloseable)
Closes the providedAutoCloseable
.
-
-
-
Method Detail
-
closeQuietly
public static void closeQuietly(java.lang.AutoCloseable autoCloseable)
Closes the providedAutoCloseable
.Exception
s that might occur will be caught and logged at error-level. If autoCloseable is null, this method does nothing.- Parameters:
autoCloseable
- the AutoCloseable to close
-
-