Class MetaFileReader

java.lang.Object
io.milton.zsync.MetaFileReader

public class MetaFileReader extends Object
Class used to read metafile
Author:
Tomáš Hlavnička
  • Constructor Details

  • Method Details

    • getHashtable

      public ChainingHash 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

      public String getSha1()
      Returns SHA1sum of complete file
      Returns:
      String containing SHA1 sum of complete file