(String key, String value)
| 487 | /// |
| 488 | /// - `URISyntaxException`: if value can not be parsed. |
| 489 | int parseIntOption(String key, String value) throws URISyntaxException { |
| 490 | try { |
| 491 | return Integer.parseInt(value); |
| 492 | } catch (NumberFormatException nfe) { |
| 493 | throw new URISyntaxException(value, "Invalid " + key + " value: " + value); |
| 494 | } |
| 495 | } |
| 496 | |
| 497 | /// Internal utility method to determine if the given scheme should use |
| 498 | /// semicolons (;) for query separator instead of ampersand (&) |