Code example for URI

Methods: toURL

0
public class Ruby implements Checker<URI> {
 
    public boolean check(URI target) {
        try { 
            InputStream in = null;
            in = Resources.newInputStreamSupplier(target.toURL()).getInput();
             
            org.jruby.Ruby ruby = org.jruby.Ruby.newInstance();
            ruby.loadFile("rubyChecker",in,true);
            new Parser(ruby); 
        } catch (FileNotFoundException fnfex) {
            return false; 
        } catch (Exception ex) {
            return false; 
        } 
        return true; 
    } 
 
    public boolean check(List<URI> targets) {
        boolean check = true;
        for(URI t : targets){