jar solution

Remote

URL url = new URL("jar:http://hostname/my.jar!/");
JarURLConnection conn = (JarURLConnection)url.openConnection();
JarFile jarfile = conn.getJarFile();


Local

JarFile jar = new JarFile(new File(jarFileName), false, JarFile.OPEN_READ);
JarEntry entry = jar.getJarEntry(fileName);

Drawable.createFromStream(jar.getInputStream(entry))
ImageView.setImageDrawable(drawable)

MediaPlayer mp = createMediaPlayer(jar.getInputStream(entry));

Properties.load(InputStream)

Comments

Popular posts from this blog

How to get started with Vue in under a minute?

aigiri nandini - Brodha V you rock