@Override public void onMultiChunkWrite(MultiChunk multiChunk, Chunk chunk) { logger.log( Level.FINER, "- Chunk > MultiChunk: {0} > {1}", new Object[] {StringUtil.toHex(chunk.getChecksum()), multiChunk.getId()}); multiChunkEntry.addChunk(chunkEntry.getChecksum()); }
@Override public void onMultiChunkClose(MultiChunk multiChunk) { logger.log(Level.FINER, "- /MultiChunk {0}", multiChunk.getId()); multiChunkEntry.setSize(multiChunk.getSize()); newDatabaseVersion.addMultiChunk(multiChunkEntry); multiChunkEntry = null; }
@Override public void onMultiChunkOpen(MultiChunk multiChunk) { logger.log(Level.FINER, "- +MultiChunk {0}", multiChunk.getId()); multiChunkEntry = new MultiChunkEntry(multiChunk.getId(), 0); // size unknown so far }