public class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static String |
getURIName(URI uri)
Returns the name portion of the specified URI.
|
static URI |
resolve(URI baseUri,
String uriString)
Constructs a new URI by parsing the given string and then resolving it
against the base URI.
|
static URI |
toURI(URL url)
Returns URI for the specified URL.
|
public static String getURIName(URI uri)
uri
- the URI from which to extract the namepublic static URI toURI(URL url) throws URISyntaxException
url
- the URL to convert to URIURISyntaxException
public static URI resolve(URI baseUri, String uriString)
baseUri
- the base URI to resolve againsturiString
- the String to construct URI and resolveCopyright © 2019. All rights reserved.