获取罐子条目
//package com.nowjava; import java.util.ArrayList;/**from n o w j a v a . c o m - 时代Java**/ import java.util.Enumeration; import java.util.jar.JarEntry; import java.util.jar.JarFile; public class Main { public static ArrayList getJarEntries(JarFile jarFile, String directory) { Enumeration enumeration = jarFile.entries(); ArrayList<JarEntry> nets = new ArrayList(); directory = directory + System.getProperty("file.separator"); while (enumeration.hasMoreElements()) { JarEntry je = (JarEntry) enumeration.nextElement(); String s = je.toString(); if ((s.indexOf(directory) > -1)