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

Method toURI

CodenameOne/src/com/codename1/io/File.java:445–456  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

443 ///
444 /// - `URISyntaxException`
445 public URI toURI() throws URISyntaxException {
446 String path = getAbsolutePath();
447 path = path.substring(6);
448 path = StringUtil.replaceAll(path, "\\", "/");
449 while (path.startsWith("/")) {
450 path = path.substring(1);
451 }
452 path = "/" + path;
453 return new URI("file", null, path, null, null);
454
455
456 }
457
458 /// Interface to filter filenames.
459 public interface FilenameFilter {

Callers 3

toURLMethod · 0.95
getCustomComponentsMethod · 0.95
startMIDletMethod · 0.95

Calls 4

getAbsolutePathMethod · 0.95
substringMethod · 0.95
replaceAllMethod · 0.95
startsWithMethod · 0.95

Tested by

no test coverage detected