Package io.milton.zsync
Class MetaFileReader
java.lang.Object
io.milton.zsync.MetaFileReader
Class used to read metafile
- Author:
- Tomáš Hlavnička
-
Constructor Summary
ConstructorsConstructorDescriptionMetaFileReader(MetaFileMaker.MetaData metaData) MetaFileReader(File metafile) -
Method Summary
Modifier and TypeMethodDescriptionintReturns number of blocks in complete fileintReturns size of blockintLength of used strong sumReturns hash table cotaining block checksumslongReturns length of complete fileintLength of used weak sumintNumber of consequence blocksgetSha1()Returns SHA1sum of complete file
-
Constructor Details
-
MetaFileReader
-
MetaFileReader
-
-
Method Details
-
getHashtable
Returns hash table cotaining block checksums- Returns:
- Hash table
-
getBlockCount
public int getBlockCount()Returns number of blocks in complete file- Returns:
- Number of blocks
-
getBlocksize
public int getBlocksize()Returns size of block- Returns:
- Size of the data block
-
getChecksumBytes
public int getChecksumBytes()Length of used strong sum- Returns:
- Length of strong sum
-
getLength
public long getLength()Returns length of complete file- Returns:
- Length of the file
-
getRsumBytes
public int getRsumBytes()Length of used weak sum- Returns:
- Length of weak sum
-
getSeqNum
public int getSeqNum()Number of consequence blocks- Returns:
- Number of consequence blocks
-
getSha1
Returns SHA1sum of complete file- Returns:
- String containing SHA1 sum of complete file
-