Class RunningChecksum


  • public class RunningChecksum
    extends ChecksumValue
    Used to store, update and compute checksums
    • Constructor Detail

      • RunningChecksum

        public RunningChecksum​(ChecksumAlgorithm algorithm)
                        throws java.security.NoSuchAlgorithmException
        Throws:
        java.security.NoSuchAlgorithmException
    • Method Detail

      • update

        public void update​(byte[] buffer,
                           int offset,
                           int length)
        Updates the checksum with the given buffer's contents
        Parameters:
        buffer - data to update
        offset - start in buffer
        length - number of bytes to use from buffer starting at offset