Here you can find the source of uri(String uri)
public static URI uri(String uri)
//package com.java2s; //License from project: Apache License import java.net.URI; public class Main { public static URI uri(String uri) { return URI.create(uri); }/*from w w w. java 2 s. c om*/ }