5455565758596061626364
for (;;) { int read = in.read(buf); if (read == -1) { break; } hash32.update(buf, 0, read); } int hash = hash32.getValue(); System.out.println("Streaming hash: " + hash); }