(String uriString)
| 407 | /// |
| 408 | /// - `URISyntaxException` |
| 409 | protected void parseURI(String uriString) throws URISyntaxException { |
| 410 | String s = uriString; |
| 411 | int index = s.indexOf(FRAGMENT_SEPARATOR); |
| 412 | if (index != -1) { |
| 413 | setFragment(s.substring(index + 1), false); |
| 414 | s = s.substring(0, index); |
| 415 | } |
| 416 | index = s.indexOf(SCHEME_SEPARATOR); |
| 417 | if (index != -1) { |
| 418 | String scheme = s.substring(0, index); |
| 419 | if (isValidScheme(scheme)) { |
| 420 | setScheme(scheme); |
| 421 | s = s.substring(index + 1); |
| 422 | } |
| 423 | } |
| 424 | parseSchemeSpecificPart(s, false); |
| 425 | } |
| 426 | |
| 427 | /// Utility method used to parse a given scheme specific part. If parameter |
| 428 | /// encode=true, then the result will be encoded, otherwise the result will |
no test coverage detected