ContentStoreDirUtf8 extends ContentStoreDirAbstract { @Override public String retrieve(int id) { String[] rv = retrieveParts(id, new int[] { -1 }, new int[] { -1 }); return rv == null ? null : rv[0]; } 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 testRetrieve() { for (int i = 0; i < str.length; i++) { Assert.assertEquals(str[i], store.retrieve(i + 1)); } }