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

Method getAssetStream

src/javajs/async/Assets.java:310–312  ·  view source on GitHub ↗

Gets the asset, preferably from a zip file asset, but not necessarily. @param assetPath @return

(String assetPath)

Source from the content-addressed store, hash-verified

308 * @return
309 */
310 public static InputStream getAssetStream(String assetPath) {
311 return getAssetStream(assetPath, false);
312 }
313
314 /**
315 * Gets the asset from a zip file.

Callers 2

getAssetStreamMethod · 0.95
getAssetStreamFromZipMethod · 0.95

Calls 5

getInstanceMethod · 0.95
_getURLFromPathMethod · 0.80
getResourceMethod · 0.45
getClassLoaderMethod · 0.45
openStreamMethod · 0.45

Tested by

no test coverage detected