public static void closeQuietly(Closeable c){
  if (c != null) {
    try {
      c.close();
    }
 catch (    IOException ignored) {
    }
  }
}

public static void closeQuietly ( Closeable c ) { if ( c != null ) { try { c . close ( ) ; } catch ( IOException ignored ) { } } }
closes the given closeable if non - null , swallows any ioexceptions .
