Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.net.URI;

public class Main {
    /**
     * Test to see if the URI is of the iRODS scheme "irods://".
     * 
     * @param irodsURI
     *            {@link URI} to check
     * @return <code>boolean</code> which is <code>true</code> if this is the
     *         iRODS URI scheme.
     */
    public static boolean isIRODSURIScheme(final URI irodsURI) {

        boolean isURI = false;
        String uriScheme = irodsURI.getScheme();
        if (uriScheme != null && uriScheme.equals("irods")) {
            isURI = true;
        }
        return isURI;
    }
}