@Override public void destroy() { super.destroy(); if (onDiskFile != null) { try { if (!onDiskFile.delete()) onDiskFile.deleteOnExit(); } finally { onDiskFile = null; } } } }
@Override public void close() throws IOException { super.close(); destroy(); } };
/** * Reset this buffer for reuse, purging all buffered content. */ public void reset() { if (overflow != null) { destroy(); } if (blocks != null) blocks.clear(); else blocks = new ArrayList<>(initialBlocks); blocks.add(new Block(Math.min(inCoreLimit, Block.SZ))); }
/** * Close destroys the associated buffer used to buffer the entity * * @since 4.5 */ @Override public void close() { if (buffer != null) { buffer.destroy(); } } }
/** * {@inheritDoc} * * Close destroys the associated buffer used to buffer the entity * @since 4.5 */ @Override public void close() { if (buffer != null) { buffer.destroy(); } } }
bb.writeTo(dos, null); } finally { bb.destroy();
@Override public void destroy() { super.destroy(); if (onDiskFile != null) { try { if (!onDiskFile.delete()) onDiskFile.deleteOnExit(); } finally { onDiskFile = null; } } } }
@Override public void destroy() { super.destroy(); if (onDiskFile != null) { try { if (!onDiskFile.delete()) onDiskFile.deleteOnExit(); } finally { onDiskFile = null; } } } }
@Override public void close() throws IOException { super.close(); destroy(); } };
/** Reset this buffer for reuse, purging all buffered content. */ public void reset() { if (overflow != null) { destroy(); } if (blocks != null) blocks.clear(); else blocks = new ArrayList<Block>(initialBlocks); blocks.add(new Block(Math.min(inCoreLimit, Block.SZ))); }
/** * Reset this buffer for reuse, purging all buffered content. */ public void reset() { if (overflow != null) { destroy(); } if (blocks != null) blocks.clear(); else blocks = new ArrayList<>(initialBlocks); blocks.add(new Block(Math.min(inCoreLimit, Block.SZ))); }
} finally { if (rawMerged != null) { rawMerged.destroy();
bb.writeTo(dos, null); } finally { bb.destroy();
bb.writeTo(dos, null); } finally { bb.destroy();
} finally { if (rawMerged != null) { rawMerged.destroy();