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 {
    /**
     * Get the host (if available) from the <code>URI</code> in iRODS form.
     * 
     * @param irodsURI
     *            {@link URI} in the <code>irods://</code> format
     * @return <code>String</code> with the iRODS host, or <code>null</code> if
     *         not available.
     */
    public static String getHostFromURI(final URI irodsURI) {
        return irodsURI.getHost();
    }
}