code: public void digest(InputStream src, MessageDigest digest) throws IOException {
          int numRead;
          
          while (true) {
              numRead = src.read(buffer);
              if (numRead < 0) {
                  break;
              }
              digest.update(buffer, 0, numRead);
          }
      }
docs: --