Package org.syncany.database.MultiChunkEntry

Examples of org.syncany.database.MultiChunkEntry.MultiChunkId


    @Override
    public MultiChunkId createNewMultiChunkId(Chunk firstChunk) {
      byte[] newMultiChunkId = new byte[firstChunk.getChecksum().length];
      secureRandom.nextBytes(newMultiChunkId);

      return new MultiChunkId(newMultiChunkId);
    }
View Full Code Here


        fileContent.addChunk(ChunkChecksum.parseChunkChecksum(chunkChecksumStr));
      }
      else if (elementPath.equalsIgnoreCase("/database/databaseVersions/databaseVersion/multiChunks/multiChunk")) {
        String multChunkIdStr = attributes.getValue("id");
        MultiChunkId multiChunkId = MultiChunkId.parseMultiChunkId(multChunkIdStr);
        long size = Long.parseLong(attributes.getValue("size"));

        if (multiChunkId == null) {
          throw new SAXException("Cannot read ID from multichunk " + multChunkIdStr);
        }
View Full Code Here

TOP

Related Classes of org.syncany.database.MultiChunkEntry.MultiChunkId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.