commons-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/COMPRESS-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841896#action_12841896
] 

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: https://issues.apache.org/jira/browse/COMPRESS-99
>             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.


Mime
View raw message