Here you can find the source of getInputStreamFromZipFile( String zipFilePath, String resourcePath)
protected static InputStream getInputStreamFromZipFile( String zipFilePath, String resourcePath) throws IOException
//package com.java2s; import java.io.IOException; import java.io.InputStream; import java.net.URL; public class Main { protected static InputStream getInputStreamFromZipFile( String zipFilePath, String resourcePath) throws IOException { URL metadata = new URL(String.format("jar:file:%s!/%s", zipFilePath, resourcePath)); return metadata.openStream(); }//from w w w. ja v a 2 s . c o m }