code: public static boolean checkMD5OfFile(String targetMD5, File file) throws IOException {
          InputStream in = FileUtils.openInputStream(file);
          String trueMd5 = DigestUtils.md5Hex(in);
          IOUtils.closeQuietly(in);
          return (targetMD5.equals(trueMd5));
      }
docs: Check the MD5 of the specified file
  @param targetMD5 Expected MD5
  @param file      File to check
  @return          True if MD5 matches, false otherwise