Java tutorial
//package com.java2s; import java.net.URI; public class Main { /** * Get the port from the <code>URI</code> in iRODS form. * * @param irodsURI * {@link URI} in the <code>irods://</code> format * @return <code>int</code> with the iRODS port. */ public static int getPortFromURI(final URI irodsURI) { return irodsURI.getPort(); } }