I have a ZipFile and I'd like to create an array with the offsets/sizes of each entry in it. This is so that a C++ layer (JNI) can read these subfiles directly without having to extract them.
I can get the file's compressed size using entry.getCompressedSize() but I don't see anything to find out the offset of the file within the zip.
Enumeration<? extends ZipEntry> zipEntries = zipFile.entries(); while (zipEntries.hasMoreElements()) { ZipEntry zip = (ZipEntry)zipEntries.nextElement(); //long offset = ? long fileSize = zip.getCompressedSize(); } Any easy way to get this?