/** * Closes the block file. * * @throws IOException if an I/O error occurs. */ public synchronized void close() throws IOException { close(false); }
/** * Close the file. * * @throws IOException If an I/O error occurs. */ public synchronized void close() throws IOException { if (avlBlockFile != null) { avlBlockFile.close(); } }
/** * Closes and deletes the block file. * * @throws IOException if an I/O error occurs. */ public synchronized void delete() throws IOException { try { close(true); } finally { blockFile = null; freeList = null; } }
blockFiles[i].delete(); } else { blockFiles[i].close();