@Override public void close() { if (store != null) { try { store.close(); } finally { store = null; } } }
@Override public void close() { if (store != null) { try { store.close(); endOfFile = true; } finally { store = null; } } }
/** * Close the file without throwing any exceptions. Exceptions are simply * ignored. */ public void closeSilently() { try { close(); } catch (Exception e) { // ignore } }
/** * Close the file without further writing. */ public synchronized void close() { trace.debug("close"); if (log != null) { log.close(); log = null; } if (file != null) { try { file.releaseLock(); file.close(); } finally { file = null; } } }
file.close(); FileUtils.delete(fileName); openNew();
public void close() throws IOException { if (store != null) { try { store.close(); } finally { store = null; } } }
public void close() throws IOException { if (store != null) { try { store.close(); endOfFile = true; } finally { store = null; } } }
/** * Close the file without throwing any exceptions. Exceptions are simply * ignored. */ public void closeSilently() { try { close(); } catch (Exception e) { // ignore } }
@Override public void close() { if (store != null) { try { store.close(); endOfFile = true; } finally { store = null; } } }
public void closeSilently() { try { close(); } catch (IOException e) { // ignore } }
@Override public void close() { if (store != null) { try { store.close(); } finally { store = null; } } }
@Override public void close() { if (store != null) { try { store.close(); endOfFile = true; } finally { store = null; } } }
/** * Close the file without throwing any exceptions. Exceptions are simply * ignored. */ public void closeSilently() { try { close(); } catch (Exception e) { // ignore } }
@Override public void close() { if (store != null) { try { store.close(); } finally { store = null; } } }
public void delete() throws SQLException { synchronized (database) { try { cache.clear(); file.close(); FileUtils.delete(fileName); } catch (IOException e) { throw Message.convertIOException(e, fileName); } finally { file = null; fileName = null; } } }
/** * Close the file without further writing. */ public synchronized void close() { trace.debug("close"); if (log != null) { log.close(); log = null; } if (file != null) { try { file.releaseLock(); file.close(); } finally { file = null; } } }
/** * Close the file without further writing. */ public synchronized void close() { trace.debug("close"); if (log != null) { log.close(); log = null; } if (file != null) { try { file.releaseLock(); file.close(); } finally { file = null; } } }
void close(boolean delete) throws SQLException { SQLException closeException = null; try { flush(); } catch (SQLException e) { closeException = e; } // continue with close even if flush was not possible (file storage problem) if (file != null) { try { file.close(); file = null; if (delete) { database.deleteLogFileLater(fileName); } } catch (IOException e) { if (closeException == null) { closeException = Message.convertIOException(e, fileName); } } file = null; fileNamePrefix = null; } if (closeException != null) { throw closeException; } }