Home | History | Annotate | Download | only in io

Lines Matching refs:checksum

40 import java.util.zip.Checksum;
572 * Computes and returns the checksum value for a file.
573 * The checksum object is reset when this method returns successfully.
576 * @param checksum the checksum object
577 * @return the result of {@link Checksum#getValue} after updating the
578 * checksum object with all of the bytes in the file
581 public static long getChecksum(File file, Checksum checksum)
583 return ByteStreams.getChecksum(newInputStreamSupplier(file), checksum);