zipEntry ordering?
hi,
if I open a zipInputStream on a zipfile with multiple zipEntries and call
getNextEntry(), what determines which of the many zipEntries will be given back
to me first?
The API specifies that the 'next' zipEntry is returned, but how does the system
determine this?
I have a zipfile whose zipEntries need to be read in a certain order. It was
working fine, but now I am getting the wrong entry first off.
Any info provided is GREATLY appreciated!
[509 byte] By [
pnandrusa] at [2007-11-27 4:48:51]

It's generally indeterminate. I would guess it's actually the order the files were inserted, but I think it's more to do with how the creator of the zip file inserts them than how it
Did you try using ZipFile and getting entries by name? I think that's the only way to do it, but you'd need to know the contents. Or be get the entries and sort them somehow first.
yeah, the problem with that solution (of getting them by name), is that the
names are random in a sense. there's no set format to the zip entry names, just
the format to which they need to take.
thanks for the info. I thought it was alphabetical (ASCII) at first, but order of
insertion sounds more correct (which would make it alphabetical in most cases
where they're zipped by name with ascending extensions, as is my case)