提取罐子入口
//Licensed under the Apache License, Version 2.0 (the "License"); //package com.nowjava; import java.io.File; /** n o w j a v a . c o m - 时 代 Java 提供 **/ import java.io.IOException; import java.util.jar.JarEntry; import java.util.jar.JarInputStream; public class Main { private static void extractEntry(File entryFile, JarInputStream jis, JarEntry entry, boolean deleteOnExit) throws IOException { File parent = new File(entryFile.getParent()); if (!parent.exists()) parent.mkdirs(); //ResourceUtil.copy(jis, new FileOutputStream(entryFile)); entryFile.setLastModified(entry.getTime(