Home | History | Annotate | Download | only in io

Lines Matching refs:checksum

36 import java.util.zip.Checksum;
694 * Computes and returns the checksum value for a supplied input stream.
695 * The checksum object is reset when this method returns successfully.
698 * @param checksum the checksum object
699 * @return the result of {@link Checksum#getValue} after updating the
700 * checksum object with all of the bytes in the stream
704 final Checksum checksum) throws IOException {
707 checksum.update(buf, off, len);
712 long result = checksum.getValue();
713 checksum.reset();