Пример #1
0
 @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());
 }
Пример #2
0
    @Override
    public void onMultiChunkClose(MultiChunk multiChunk) {
      logger.log(Level.FINER, "- /MultiChunk {0}", multiChunk.getId());

      multiChunkEntry.setSize(multiChunk.getSize());

      newDatabaseVersion.addMultiChunk(multiChunkEntry);
      multiChunkEntry = null;
    }
Пример #3
0
 @Override
 public void onMultiChunkOpen(MultiChunk multiChunk) {
   logger.log(Level.FINER, "- +MultiChunk {0}", multiChunk.getId());
   multiChunkEntry = new MultiChunkEntry(multiChunk.getId(), 0); // size unknown so far
 }