@Test public void testMultiEntries() throws IOException { File file = tempFolder.newFile(); try (ObjectEntryLargeFileWriter writer = new ObjectEntryLargeFileWriter(file)) { writer.writeEntry(new ObjectEntry().setObjectId("obj1").setSize(1L)); writer.writeEntry(new ObjectEntry().setObjectId("obj2").setSize(2L)); } assertThat(file).hasContent("" + "{\"objectId\":\"obj1\",\"size\":1}\n" + "{\"objectId\":\"obj2\",\"size\":2}\n" + "{}"); }
@Override public void writeEntry(ObjectEntry entry) throws IOException { objectEntryWriter.write(entry); }
ObjectEntryLargeFileWriter implements LargeFileWriter<ObjectEntry> { @Override public void writeEntry(ObjectEntry entry) throws IOException { objectEntryWriter.write(entry); } }
ObjectEntryLargeFileWriter implements LargeFileWriter<ObjectEntry> { @Override public void writeEntry(ObjectEntry entry) throws IOException { objectEntryWriter.write(entry); } ObjectEntryLargeFileWriter(File file); }
ObjectEntryLargeFileWriter implements LargeFileWriter<ObjectEntry> { @Override public void writeEntry(ObjectEntry entry) throws IOException { objectEntryWriter.write(entry); } ObjectEntryLargeFileWriter(File file); @Override void writeEntry(ObjectEntry entry); @Override void close(); }
ObjectEntryLargeFileWriter implements LargeFileWriter<ObjectEntry> { @Override public void writeEntry(ObjectEntry entry) throws IOException { objectEntryWriter.write(entry); } ObjectEntryLargeFileWriter(File file); @Override void writeEntry(ObjectEntry entry); @Override void close();  }