boolean closedOk = unlock(fd);
boolean closedOk = unlock(fd);
boolean closedOk = unlock(fd);
boolean closedOk = unlock(fd);
boolean closedOk = unlock(fd);
boolean closedOk = unlock(fd);
boolean closedOk = unlock(fd);
boolean closedOk = unlock(fd);
boolean closedOk = unlock(fd);
boolean closedOk = unlock(fd);
/** * Unlock and close the file. Note that if the unlock fails we set * the return value to false to indicate an error but rely on the * close to really do the unlock. */ protected boolean closeAndUnlock (File fd, FileInputStream ifile, FileOutputStream ofile) { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PRIVATE, FacilityCode.FAC_OBJECT_STORE, "FileSystemStore.closeAndUnlock("+fd+", "+ifile+", "+ofile+")"); } boolean closedOk = unlock(fd); try { if (ifile != null) ifile.close(); else ofile.close(); } catch (Exception e) { closedOk = false; } return closedOk; }