Here you can find the source of createUri(String base)
private static URI createUri(String base)
//package com.java2s; //License from project: Apache License import java.net.URI; import java.net.URISyntaxException; public class Main { private static URI createUri(String base) { try {/* w ww . j a v a 2 s .c o m*/ return new URI(base); } catch (URISyntaxException e) { throw new RuntimeException(e); } } }