org.khelekore.rnio.impl
Class Closer
java.lang.Object
org.khelekore.rnio.impl.Closer
public class Closer
- extends Object
A helper class that can close resources without throwing exceptions.
- Author:
- Robert Olofsson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Closer
public Closer()
close
public static void close(Closeable c,
Logger logger)
- Try to close the Closeable.
If an exception is thrown when calling close() it will be logged
to the logger.