Java URI to Relative URI getRelativeURI(URI uri, URI relativeTo)

Here you can find the source of getRelativeURI(URI uri, URI relativeTo)

Description

get the URI relative to the specified base

License

Open Source License

Parameter

Parameter Description
uri a parameter

Return

java.net.URI

Declaration

public static URI getRelativeURI(URI uri, URI relativeTo) 

Method Source Code

//package com.java2s;
// are made available under the terms of the Eclipse Public License v1.0

import java.net.URI;

public class Main {
    /**/*from  w  w  w . ja v  a 2  s .co m*/
     * get the URI relative to the specified base
     * 
     * @param uri
     * @return java.net.URI
     * @deplicated
     */
    public static URI getRelativeURI(URI uri, URI relativeTo) {
        URI relUri = relativeTo.relativize(uri);
        return relUri;
    }
}

Related

  1. getRelativePath(URI targetUri, URI baseUri)
  2. getRelativeURI(String href)
  3. getRelativeURI(URI base, URI uri)
  4. getRelativeURI(URI repositoryXml, URI bundleJar)
  5. getRelativeUri(URI rootURI, File file)
  6. relativeConfig(URI uri)
  7. relativeFileToURI(File file)
  8. relativePath(final URI baseURI, final URI pathURI)
  9. relativeURI(String basePath, String path)