Package de.aristaflow.adept2.util.io
Class IoTools.Unchecked<C extends AutoCloseable>
- java.lang.Object
-
- de.aristaflow.adept2.util.io.IoTools.Unchecked<C>
-
- Type Parameters:
C
- The type of the closeable of which to wrap any exception fromAutoCloseable.close()
.
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- IoTools
public static class IoTools.Unchecked<C extends AutoCloseable> extends Object
This class wraps anAutoCloseable
and wraps the exception from closing in aRuntimeException
if necessary.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Unchecked(C wrapped)
Creates a new closeable wrapping the designatedAutoCloseable
wrapping any exception fromAutoCloseable.close()
.
-
-
-
Constructor Detail
-
Unchecked
protected Unchecked(C wrapped)
Creates a new closeable wrapping the designatedAutoCloseable
wrapping any exception fromAutoCloseable.close()
.- Parameters:
wrapped
- The wrappedAutoCloseable
.
-
-