public static final void updateDigest(final MessageDigest md, final InputStream is) throws Exception {
		final DigestInputStream dis = new DigestInputStream(new BufferedInputStream(is), md);

		while(dis.read() != -1);
	}
public static final void updateDigest ( final MessageDigest md , final InputStream is ) throws Exception { final DigestInputStream dis = new DigestInputStream ( new BufferedInputStream ( is ) , md ) ; while ( dis . read ( ) != - 1 ) ; }
@param md
@param is
@throws Exception