Here you can find the source of createURI(String hostname, int port)
public static URI createURI(String hostname, int port)
//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*/ }