/** Creates the offsets. */ private void createOffsets() { // TODO:this implementation for the Sharefile v1 (max size 2**32), v2 // (max size 2**64) need to be implemented by changing the offsets from // integer to long offsets = new Hashtable<String, Integer>(); int x = 0x24; offsets.put("data", x); x += data_size; offsets.put("plaintext_hash_tree", x); x += segment_hash_size; offsets.put("crypttext_hash_tree", x); x += segment_hash_size; offsets.put("block_hashes", x); x += segment_hash_size; offsets.put("share_hashes", x); x += share_hashtree_size; offsets.put("uri_extension", x); logger.debug("({}): create offsets={}", self, DumpUtils.dumptolog(offsets)); }