Here you can find the source of getPortFromURI(final URI uri)
Parameter | Description |
---|---|
uri | the URI |
int
with the port.
public static int getPortFromURI(final URI uri)
//package com.java2s; //License from project: BSD License import java.net.URI; public class Main { /**/* w w w. j a v a 2s .co m*/ * Get the port from the URI in iRODS form. * * @param uri * the URI * @return <code>int</code> with the port. */ public static int getPortFromURI(final URI uri) { return uri.getPort(); } }