[
https://issues.apache.org/jira/browse/COMPRESS-540?focusedWorklogId=455246&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-455246
]
ASF GitHub Bot logged work on COMPRESS-540:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 07/Jul/20 06:21
Start Date: 07/Jul/20 06:21
Worklog Time Spent: 10m
Work Description: theobisproject opened a new pull request #113:
URL: https://github.com/apache/commons-compress/pull/113
Basic idea behind the implementation is to read all headers at instantiation
and save the position to the entry data. This will then be accessed as a random
access file when reading the entry.
I tried to touch as less exisiting code as possible and only did refactor
existing code were I felt it was really needed.
I have the following TODOs left in the code where I think your opinion is
needed
- TarArchiveInputStream#canReadEntryData: as noted in the TODO sparse
entries are now supported. I see no need for this function any longer and would
not include it in the TarFile api. Also we should update the implementation to
reflect the now supported sparse entries.
- In the SparseFilesTest extracting of sparsefile-0.1 in pax_gnu_sparse.tar
is skipped because of problems with tar on Ubuntu 16.04. I tested this on
Ubuntu 18.04 and everything worked fine. Should we reenable extracting of the
file?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 455246)
Remaining Estimate: 0h
Time Spent: 10m
> Random access on Tar archive
> ----------------------------
>
> Key: COMPRESS-540
> URL: https://issues.apache.org/jira/browse/COMPRESS-540
> Project: Commons Compress
> Issue Type: Improvement
> Reporter: Robin Schimpf
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The TarArchiveInputStream only provides sequential access. If only a small
> amount of files from the archive is needed large amount of data in the input
> stream needs to be skipped.
> Therefore I was working on a implementation to provide random access to
> TarFiles equal to the ZipFile api. The basic idea behind the implementation
> is the following
> * Random access is backed by a SeekableByteChannel
> * Read all headers of the tar file and save the place to the data of every
> header
> * User can request an input stream for any entry in the archive multiple
> times
--
This message was sent by Atlassian Jira
(v8.3.4#803005)