commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Bodewig (JIRA)" <>
Subject [jira] Commented: (COMPRESS-99) Return zip entries in the original order
Date Fri, 05 Mar 2010 15:44:33 GMT


Stefan Bodewig commented on COMPRESS-99:

That wouldn't really be too hard to do, just make the entries Map inside ZipFile a LinkedHashMap
rather than a HashMap.  I'm just not sure whether my (and ZipFile's) understanding of "original
order" is the same as yours.

In ZIPs you have a central directory at the end of the archive and I'd consider the order
of entries in this central directory the order of entries inside the archive.  This doesn't
necessarily agree with the physical order of entry data inside the archive.

> Return zip entries in the original order
> ----------------------------------------
>                 Key: COMPRESS-99
>                 URL:
>             Project: Commons Compress
>          Issue Type: Improvement
>    Affects Versions: 1.0
>            Reporter: Trejkaz
> We would like ZipFile.getEntries() to return its entries in the original order, instead
of the random ordering used at present.
> If this cannot be done, we need a way to sort the entries back into the original order
ourselves (which at present is not possible either.)

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message