code: private void calculateChecksums(File file) {
          try {
              this.md5sum = Checksum.getMD5Checksum(file);
              this.sha1sum = Checksum.getSHA1Checksum(file);
              this.sha256sum = Checksum.getSHA256Checksum(file);
          } catch (NoSuchAlgorithmException | IOException ex) {
              LOGGER.debug(String.format("Unable to calculate checksums on %s", file), ex);
          }
      }
docs: Calculates the checksums for the given file.
  
  @param file the file used to calculate the checksums