@Test public void testTruncate() throws IOException { ByteArraySeekableFile seekableFile = new ByteArraySeekableFile(); EntriesFile file = new EntriesFile(seekableFile); file.appendEntry(new NoOpEntry(2, 3)); Assert.assertTrue(seekableFile.size() > 0); file.truncate(0L); Assert.assertEquals(0L, seekableFile.size()); }
public void truncate(long offset) throws IOException { seekableFile.truncate(offset); }
EntriesFile { public void truncate(long offset) throws IOException { seekableFile.truncate(offset); } }
EntriesFile { public void truncate(long offset) throws IOException { seekableFile.truncate(offset); } EntriesFile(File file);  EntriesFile(SeekableFile seekableFile); }
EntriesFile { public void truncate(long offset) throws IOException { seekableFile.truncate(offset); } EntriesFile(File file);  EntriesFile(SeekableFile seekableFile); long appendEntry(Entry entry); Entry loadEntry(long offset, EntryFactory factory); long size(); void clear(); void truncate(long offset); void close(); }
EntriesFile { public void truncate(long offset) throws IOException { seekableFile.truncate(offset); } EntriesFile(File file);  EntriesFile(SeekableFile seekableFile); long appendEntry(Entry entry); Entry loadEntry(long offset, EntryFactory factory); long size(); void clear(); void truncate(long offset); void close();  }