Java URI to Port getPortFromURI(final URI uri)

Here you can find the source of getPortFromURI(final URI uri)

Description

Get the port from the URI in iRODS form.

License

BSD License

Parameter

Parameter Description
uri the URI

Return

int with the port.

Declaration

public static int getPortFromURI(final URI uri) 

Method Source Code

//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();
    }
}

Related

  1. getPort(URI uri)
  2. getPort(URI uri)