Here you can find the source of getRelativeURI(URI uri, URI relativeTo)
Parameter | Description |
---|---|
uri | a parameter |
public static URI getRelativeURI(URI uri, URI relativeTo)
//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; } }