archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java
/**
     * Calculate the checksum based on a given checksum.
     *
     * @param checksumAlgorithm the algorithm to use.
     * @return the checksum string for the file.
     * @throws IOException if unable to calculate the checksum.
     */
Calculate the checksum based on a given checksum.
@param checksumAlgorithm the algorithm to use.
@return the checksum string for the file.
@throws IOException if unable to calculate the checksum.
Calculate the checksum based on a given checksum . @param checksumAlgorithm the algorithm to use . @return the checksum string for the file . @throws IOException if unable to calculate the checksum .
public String calculateChecksum( ChecksumAlgorithm checksumAlgorithm )
        throws IOException
    {
        Checksum checksum = new Checksum( checksumAlgorithm );
        ChecksumUtil.update(checksum, referenceFile );
        return checksum.getChecksum( );
    }
public String calculateChecksum ( ChecksumAlgorithm checksumAlgorithm ) throws IOException { Checksum checksum = new Checksum ( checksumAlgorithm ) ; ChecksumUtil . update ( checksum , referenceFile ) ; return checksum . getChecksum ( ) ; }
Calculate the checksum based on a given checksum.
Calculate the checksum based on a given checksum .