ContentStoreDirUtf8 extends ContentStoreDirAbstract { @Override public synchronized void delete(int id) { TocEntry e = toc.get(id); e.deleted = true; tocModified = true; } ContentStoreDirUtf8(File dir);  ContentStoreDirUtf8(File dir, boolean create); void setWriteMapReserve(int writeMapReserve); void setBlockSizeCharacters(int size); @Override void clear(); @Override void close(); void setDataFileSizeHint(long dataFileSizeHint); void addToBlock(String contentPart); void writeCurrentBlock(OutputStream os); @Override synchronized void storePart(String content); @Override synchronized int store(String content); @Override String retrieve(int id); @Override synchronized String[] retrieveParts(int contentId, int[] start, int[] end); @Override synchronized void delete(int id); @Override boolean isDeleted(int id); @Override int docLength(int id); @Override Set<Integer> idSet(); @Override void initialize();  }
@Test public void testDelete() { store.delete(2); Assert.assertNull(store.retrieve(2)); Assert.assertEquals(str[0], store.retrieve(1)); }