java.util.zip ZipEntry getComment returns null when ZipInputStream is used
to read the ZIP file. All the other properties (name, compressed size, crc,
extra, size, time, method) have the correct information.
Used ZIP files that were compressed and uncompressed. When creating the ZIP
files the Zip entry properties were set before the data was written, so this
information would be before the actual data. So all the information is in the
Zip entry when ZipInputStream.getNextEntry is used.
Note: When using ZipFile to read from the ZIP file, getComment returns the
correct comment.
Test program below:
to read the ZIP file. All the other properties (name, compressed size, crc,
extra, size, time, method) have the correct information.
Used ZIP files that were compressed and uncompressed. When creating the ZIP
files the Zip entry properties were set before the data was written, so this
information would be before the actual data. So all the information is in the
Zip entry when ZipInputStream.getNextEntry is used.
Note: When using ZipFile to read from the ZIP file, getComment returns the
correct comment.
Test program below: