Java URI Create createURI(String hostname, int port)

Here you can find the source of createURI(String hostname, int port)

Description

create URI

License

Apache License

Declaration

public static URI createURI(String hostname, int port) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.net.URI;

public class Main {
    public static URI createURI(String hostname, int port) {
        return URI.create("tcp://" + hostname + ":" + port);
    }/*from www.  j a  va  2  s .  c om*/
}

Related

  1. createURI(final String scheme, final String[] pathAsArray)
  2. createURI(List proxyPorts)
  3. createUri(String base)
  4. createURI(String extension)
  5. createURI(String filename)
  6. createUri(String name, Kind kind)
  7. createURI(String path)
  8. createURI(String path)
  9. createURI(String scheme, String host, String path)