0opslab / opslabJutil

Java utils
841 stars 483 forks source link

Bug report of [com.opslab.util.ZIPUtil] and some other utils do not support jdk 1.8 #6

Open riclava opened 8 years ago

riclava commented 8 years ago

com.opslab.util.ZIPUtil at line 21

give a solution

try {
    ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(dest));
    zipFile(file, zos, "");
    zos.flush();
    zos.close();
} catch (IOException e) {
    e.printStackTrace();
    throw e;
}
0opslab commented 8 years ago

Based on the JDK1.7