(URI uri)
| 51 | } |
| 52 | |
| 53 | public static URL fromUri(URI uri) { |
| 54 | try { |
| 55 | return uri.toURL(); |
| 56 | } catch (MalformedURLException e) { |
| 57 | throw new UncheckedIOException(e); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Convert a string, which may just be a hostname, into a valid {@link URI}. If no scheme is |