Class InfoHash

java.lang.Object
com.frostwire.jlibtorrent.InfoHash

public class InfoHash extends Object
Class holding the info-hash of a torrent. It can hold a v1 info-hash (SHA-1) or a v2 info-hash (SHA-256) or both.

If !has_v2() then the v1 hash might actually be a truncated v2 hash.

  • Constructor Details

    • InfoHash

      public InfoHash(info_hash_t swig)
    • InfoHash

      public InfoHash()
  • Method Details

    • swig

      public info_hash_t swig()
    • hasV1

      public boolean hasV1()
    • hasV2

      public boolean hasV2()
    • getBest

      public Sha1Hash getBest()
    • getV1

      public Sha1Hash getV1()
    • getV2

      public Sha256Hash getV2()