从Zip文件获取指定的条目
import java.io.IOException; /* 来 自* N o w J a v a . c o m */ import java.util.zip.ZipEntry; import java.util.zip.ZipFile; public class Main { public static void main(String args[]) { try { ZipFile zipFile = new ZipFile("c:/Folder/WebFiles.zip"); ZipEntry zipEntry = zipFile.getEntry("css/print.css"); if (zipEntry != null) System.out.println("css/print.css found in Zip file"); else System.out.println("css/print.css not found in Zip file"); /** from * 时 代 J a v a 公 众 号 - nowjava.com **/