MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / getURLWithCachedBytes

Method getURLWithCachedBytes

src/javajs/async/Assets.java:568–573  ·  view source on GitHub ↗

Convert a file path to a URL, retrieving any cached file data, as from DnD. Do not do any actual data transfer. This is a swingjs.JSUtil service. @param path @return

(String path)

Source from the content-addressed store, hash-verified

566 * @return
567 */
568 private static URL getURLWithCachedBytes(String path) {
569 URL url = getAbsoluteURL(path);
570 if (url != null)
571 addJSCachedBytes(url);
572 return url;
573 }
574
575 private Map<String, ZipEntry> readZipContents(InputStream is, URL url) throws IOException {
576 HashMap<String, ZipEntry> fileNames = new HashMap<String, ZipEntry>();

Callers 1

_getZipContentsMethod · 0.95

Calls 2

getAbsoluteURLMethod · 0.95
addJSCachedBytesMethod · 0.95

Tested by

no test coverage detected