FileBuffer extends AbstractBuffer { public void delete() { bytes.delete(); } private  FileBuffer(
      final FileBytes bytes, final int offset, final int initialCapacity, final int maxCapacity); static FileBuffer allocate(final File file); static FileBuffer allocate(final File file, final int initialCapacity); static FileBuffer allocate(
      final File file, final int initialCapacity, final int maxCapacity); static FileBuffer allocate(
      final File file, final String mode, final int initialCapacity, final int maxCapacity); File file(); MappedBuffer map(final int size); MappedBuffer map(final int size, final FileChannel.MapMode mode); MappedBuffer map(final int offset, final int size); MappedBuffer map(final int offset, final int size, final FileChannel.MapMode mode); @Override FileBuffer duplicate(); FileBuffer duplicate(final String mode); void delete();  }
@Test public void testDelete() { final File file = FileTesting.createFile(); final FileBuffer buffer = FileBuffer.allocate(file, 16); buffer.writeLong(10).writeLong(11).flip(); assertEquals(10, buffer.readLong()); assertEquals(11, buffer.readLong()); assertTrue(Files.exists(file.toPath())); buffer.delete(); assertFalse(Files.exists(file.toPath())); }