public ChecksumUtils(AlgoChecksumType type) {
    if ((type != AlgoChecksumType.ADLER32) && (type != AlgoChecksumType.CRC32)) {
      throw new IllegalArgumentException("Invalid type of algorithm.");
    }
    this.type = type;
  }