private static String cacheFile(String url) { InputStream in = getUrlStream(url); File cache = Os.writeToTempFile(in, "bundle-cache", "jar"); return cache.toURI().toString(); }
stream = new JarInputStream(getUrlStream(url)); } catch (IOException e) { throw Exceptions.propagate(e);
InputStream stream = getUrlStream(localUrl); Bundle installedBundle = framework.getBundleContext().installBundle(url, stream);