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

Method toURL

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

Source from the content-addressed store, hash-verified

428 ///
429 /// - `MalformedURLException`
430 public URL toURL() throws MalformedURLException {
431 try {
432 return new URL(toURI());
433 } catch (URISyntaxException ex) {
434 MalformedURLException err = new MalformedURLException("Invalid URL format: " + ex.getMessage());
435 err.initCause(ex);
436 throw err;
437 }
438 }
439
440 /// Converts this file to a URI.
441 ///

Callers

nothing calls this directly

Calls 3

toURIMethod · 0.95
getMessageMethod · 0.65
initCauseMethod · 0.45

Tested by

no test coverage detected