org.khelekore.rnio.impl
Class Closer

java.lang.Object
  extended by org.khelekore.rnio.impl.Closer

public class Closer
extends Object

A helper class that can close resources without throwing exceptions.

Author:
Robert Olofsson

Constructor Summary
Closer()
           
 
Method Summary
static void close(Closeable c, Logger logger)
          Try to close the Closeable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Closer

public Closer()
Method Detail

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.