如何阅读Zip文件中的评论?

Tek*_*Yin 1 java zipfile

如何使用Java在Zip文件中读写注释?

我可以这样写评论:

FileOutputStream fos = new FileOutputStream(output);
ZipOutputStream zos = new ZipOutputStream(fos);
zos.setComment("BMC Comment");
Run Code Online (Sandbox Code Playgroud)

Chr*_*rle 5

尝试:

java.util.zip.ZipFile.getComment()