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

Method parseURI

Ports/CLDC11/src/java/net/URI.java:409–425  ·  view source on GitHub ↗
(String uriString)

Source from the content-addressed store, hash-verified

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

Callers 1

URIMethod · 0.95

Calls 6

indexOfMethod · 0.95
setFragmentMethod · 0.95
substringMethod · 0.95
isValidSchemeMethod · 0.95
setSchemeMethod · 0.95

Tested by

no test coverage detected