code: private static long adler32(byte[] data) {
          final Adler32 checksum = new Adler32();
          checksum.update(data);
          return checksum.getValue();
      }
docs: Calculates the adler32 checksum of the data