Package org.aksw.commons.util.closeable
Class AutoCloseables
java.lang.Object
org.aksw.commons.util.closeable.AutoCloseables
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose(AutoCloseable closeable) Utility method to close the given argument and re-throw any exception as a runtime one.
-
Constructor Details
-
AutoCloseables
public AutoCloseables()
-
-
Method Details
-
close
Utility method to close the given argument and re-throw any exception as a runtime one. Null arguments are ignored.- Parameters:
closeable- The closeable. May be null.
-