Java URI to Relative URI resolve(String baseURI, String connectorURI)

Here you can find the source of resolve(String baseURI, String connectorURI)

Description

resolve

License

BSD License

Declaration

public static URI resolve(String baseURI, String connectorURI) throws URISyntaxException 

Method Source Code

//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());
    }
}

Related

  1. relativize(URI base, URI target)
  2. relativize(URI basePath, File path)
  3. relativize(URI baseUri, File f)
  4. relativize(URI baseURI, URI uriToRelativize)
  5. relativizeFromBase(String uri, URI base)
  6. resolve(String path, URI... relativeTo)
  7. resolve(URI base, URI child)
  8. resolve(URI baseURI, String reference)
  9. resolveAbsoluteURI(final URI relativeURI)