MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / parseIntOption

Method parseIntOption

Ports/CLDC11/src/java/net/URI.java:489–495  ·  view source on GitHub ↗
(String key, String value)

Source from the content-addressed store, hash-verified

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 (&)

Callers

nothing calls this directly

Calls 1

parseIntMethod · 0.95

Tested by

no test coverage detected