Hello All. I have some troubles with zip files. When I compressing some files I add comment to each ZipEntry: ZipEntry zipEntry = new ZipEntry(files[i]); zipEntry.setComment("Comment fo " + files[i]); zos.putNextEntry(zipEntry); But when I read archive back, zipEntry.getComment() returns null. I want to write some information about files format in comments, to parse files after extraction. Please help me.
soliloquize. I have found solution. setComment() and getComment() don't work. But there are methods that can do their work: public void setExtra(byte extra) public byte getExtra() All u need is to convert your string into byte array and then byte array into string.