Java Utililty Methods URI from

List of utility methods to do URI from

Description

The list of methods to do URI from are organized into topic(s).

Method

URItoURI(String location)
Create a URI instance for the given location String, replacing spaces with "%20" quotes first.
return new URI(replace(location, " ", "%20"));
URItoURI(String location)
to URI
return new URI(location.replace(" ", "%20"));
URItoURI(String location)
Create a URI instance for the given location String, replacing spaces with "%20" quotes first.
return new URI(replace(location, " ", "%20"));
URItoURI(String location)
to URI
return new URI(replace(location, " ", "%20"));
URItoURI(String location)
Create a URI instance for the given location String, replacing spaces with "%20" URI encoding first.
return new URI(location.replace(" ", "%20"));
URItoUri(String path)
to Uri
if (path == null || path.isEmpty()) {
    return null;
File file = new File(path);
if (file.exists()) {
    path = file.getAbsolutePath();
URI uri;
...
URItoURI(String path)
to URI
return URI.create(treatPath(path));
URItoURI(String s)
to URI
try {
    return new URI(s);
} catch (URISyntaxException e) {
    URL url;
    try {
        url = new URL(s);
    } catch (MalformedURLException e1) {
        throw e;
...
URItoURI(String str)
Constructs URI from given string.
try {
    return new URI(str);
} catch (URISyntaxException ex) {
    throw new IllegalArgumentException(ex);
URItoURI(String str)
Constructs URI from given string.
return URI.create(str);