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

Franck Valentin commented on COMPRESS-581:
------------------------------------------

Hi [~peterlee],

thanks for your answer. Actually our use case needs to get the offsets (it's 
not simply to get the offset for analysis/debug) purpose:

We store ZIP files in S3, These files contains entries we want to access 
directly without having to download the entire ZIP (some are tens of  GB big). 
To do so, we also save the different entry offsets in elasticsearch indexes. 
Then, when we need to download an entry we just get the offset and stream the 
bytes needed from S3.

This works well, the only thing is that I need to use reflection to be able to 
call _getLocalHeaderOffset()_

> Make getLocalHeaderOffset() public
> ----------------------------------
>
>                 Key: COMPRESS-581
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-581
>             Project: Commons Compress
>          Issue Type: Wish
>    Affects Versions: 1.20
>            Reporter: Franck Valentin
>            Priority: Minor
>
> Hi,
> I use this library to analyse zip files and get the entries and to do so I 
> need to get the entries together with their offsets within the archive. I use 
> ZipArchiveEntry but the issue is that getLocalHeaderOffset() is protected 
> instead of being public.
> Looking at the source code I don't understand the reason behind it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to