Parses a URI from its string form. @throws URISyntaxException if 's' is not a valid RFC 3986 URI.
(String s)
| 197 | * @throws URISyntaxException if 's' is not a valid RFC 3986 URI. |
| 198 | */ |
| 199 | public static Uri parse(String s) throws URISyntaxException { |
| 200 | try { |
| 201 | return create(s); |
| 202 | } catch (IllegalArgumentException e) { |
| 203 | throw new URISyntaxException(s, e.getMessage()); |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | /** |
| 208 | * Creates a URI from a string assumed to be valid. |