Here you can find the source of resolve(String baseURI, String connectorURI)
public static URI resolve(String baseURI, String connectorURI) throws URISyntaxException
//package com.java2s; /*/*from w w w. ja va 2s . co m*/ * Copyright (c) 2012. betterFORM Project - http://www.betterform.de * Licensed under the terms of BSD License */ import java.net.URI; import java.net.URISyntaxException; public class Main { public static URI resolve(String baseURI, String connectorURI) throws URISyntaxException { return new URI(baseURI).resolve(new URI(connectorURI).getSchemeSpecificPart()); } }