1 package org.onap.vid.utils;
3 import org.onap.vid.exceptions.GenericUncheckedException;
6 import java.net.URISyntaxException;
8 public class Unchecked {
10 // explicit private constructor, to hide the implicit public constructor
13 public static URI toURI(String uri) {
15 // Indulge spaces in the URI by the replcement
16 return new URI(uri.replace(" ", "%20"));
17 } catch (URISyntaxException e) {
18 throw new GenericUncheckedException(e);