(String uri, String fragment, int index)
| 460 | } |
| 461 | |
| 462 | private void validateFragment(String uri, String fragment, int index) |
| 463 | throws URISyntaxException { |
| 464 | try { |
| 465 | URIEncoderDecoder.validate(fragment, allLegal); |
| 466 | } catch (URISyntaxException e) { |
| 467 | throw new URISyntaxException(uri, Messages.getString("luni.8A", e //$NON-NLS-1$ |
| 468 | .getReason()), index + e.getIndex()); |
| 469 | } |
| 470 | } |
| 471 | |
| 472 | /** |
| 473 | * determine the host, port and userinfo if the authority parses |