code: public static void check(String fileOrUrl) throws IOException, TrustyUriException {
  		CheckFile c;
  		try {
  			URL url = new URL(fileOrUrl);
  			c = new CheckFile(url);
  		} catch (MalformedURLException ex) {
  			c = new CheckFile(new File(fileOrUrl));
  		}
  
  		boolean valid = c.check();
  		if (valid) {
  			System.out.println("Correct hash: " + c.r.getArtifactCode());
  			//System.out.println("ni URI: " + TrustyUriUtils.getNiUri(fileName));
  		} else {
  			System.out.println("*** INCORRECT HASH ***");
  		}
  	}
docs: Check the content of a trusty URI (fetched from the web) or a trusty file (read from the
  file system).
  
  @param fileOrUrl the file name or URL