private static void verifyDigestsImplicitly(InputStream in) throws IOException {
  byte[] buffer=new byte[BUF_SIZE];
  while (in.read(buffer,0,buffer.length) != -1) {
  }
}

private static void verifyDigestsImplicitly ( InputStream in ) throws IOException { byte [ ] buffer = new byte [ BUF_SIZE ] ; while ( in . read ( buffer , 0 , buffer . length ) != - 1 ) { } }
this checks that everything is valid and unchanged from the digest listed in the manifest next to the name .
