public static boolean close(Closeable stream){
  if (stream != null) {
    try {
      stream.close();
      return true;
    }
 catch (    IOException e) {
      Log.e(LogUtil.TAG,"Error closing stream",e);
    }
  }
  return false;
}

public static boolean close ( Closeable stream ) { if ( stream != null ) { try { stream . close ( ) ; return true ; } catch ( IOException e ) { Log . e ( LogUtil . TAG , "Error closing stream" , e ) ; } } return false ; }
closes a stream , and swallows null cases our ioexceptions .
