public static void safeClose(InputStream in){
  try {
    if (in != null)     in.close();
  }
 catch (  IOException e) {
  }
}

public static void safeClose ( InputStream in ) { try { if ( in != null ) in . close ( ) ; } catch ( IOException e ) { } }
closes a stream and ignores any resulting exception .
