static void closeAfterWrite(OutputStream out,FileDescriptor outFd){
  try {
    if (out != null) {
      out.flush();
    }
    if (outFd != null) {
      outFd.sync();
    }
  }
 catch (  IOException e) {
    LLog.e("Fail sync");
  }
 finally {
    closeQuietly(out);
  }
}

static void closeAfterWrite ( OutputStream out , FileDescriptor outFd ) { try { if ( out != null ) { out . flush ( ) ; } if ( outFd != null ) { outFd . sync ( ) ; } } catch ( IOException e ) { LLog . e ( "Fail sync" ) ; } finally { closeQuietly ( out ) ; } }
closes an outputstream and the filedescriptor associated with it after ensuring all data as been written to disk .
