但是下面的示例片段如何呢:try zos = new ZipOutputStream(new FileOutputStream("thread "main" java.util.zip.ZipException: ZIP file must have at least one entry
at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:304
ZipOutputStream jos = new ZipOutputStream( new MyOutputStream(new FileOutputStream(zipFileName)));但是,当我尝试执行jos.write(buffer, 0, len);时,没有将数据写入底层ZipOutputStream的输出流。, fullSourcePath.length());ZipOu
// STEP 1 - Create a ZIP file ZipOutputStreamoutZip = new ZipOutputStream(new FileOutputStream("file.zip"));
outZip.setLevel(Deflater.DEFAULT_COMPRESSION我认为我需要直接将ZipOutputStream<