[
https://issues.apache.org/jira/browse/COMPRESS-540?focusedWorklogId=456809&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-456809
]
ASF GitHub Bot logged work on COMPRESS-540:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 09/Jul/20 20:03
Start Date: 09/Jul/20 20:03
Worklog Time Spent: 10m
Work Description: theobisproject commented on pull request #113:
URL: https://github.com/apache/commons-compress/pull/113#issuecomment-656323828
> I am wondering if the introduction of utility streams would not best be
done by depending on Apache Commons IO which already contains a bounded stream
for example
As I understood commons-compress does purposefully not depend on Commons IO.
This is something which I cannot decide to change.
> for BoundedSeekableByteChannelInputStream, please tell users if it is
thread-safe in its javadoc.
for BoundedNIOInputStream , please tell users if it is thread-safe in its
javadoc.
I will add the information if the general design is accepted from the
maintainers.
> for TarArchiveSparseZeroInputStream, maybe this class should be added to
commons-io instead.
In my opinion this adds no value for Commons IO and should not be used
outside of the tar implementation. I only moved this class to reuse it in both
implementations and made it package protected so nobody outside the tar package
will use it.
----------------------------------------------------------------
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: 456809)
Time Spent: 50m (was: 40m)
> 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: 50m
> 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)