(URL url)
| 514 | |
| 515 | |
| 516 | public static URI toURI(URL url) throws URISyntaxException { |
| 517 | return toURI(url.toString()); |
| 518 | } |
| 519 | |
| 520 | public static URI toURI(String location) throws URISyntaxException { |
| 521 | return new URI(StringHelper.replace(location, " ", "%20")); |