Package openbook.tools.util
Class URIUtils
- java.lang.Object
-
- openbook.tools.util.URIUtils
-
public class URIUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description URIUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getRelativePath(java.lang.String targetPath, java.lang.String basePath, java.lang.String pathSeparator)
static java.net.URI
resolve(java.net.URI baseURI, java.lang.String reference)
static java.net.URI
resolve(java.net.URI baseURI, java.net.URI reference)
Resolves a URI reference against a base URI.
-
-
-
Method Detail
-
resolve
public static java.net.URI resolve(java.net.URI baseURI, java.lang.String reference)
-
resolve
public static java.net.URI resolve(java.net.URI baseURI, java.net.URI reference)
Resolves a URI reference against a base URI.- Parameters:
baseURI
- the base URIreference
- the URI reference- Returns:
- the resulting URI
-
getRelativePath
public static java.lang.String getRelativePath(java.lang.String targetPath, java.lang.String basePath, java.lang.String pathSeparator)
-
-