Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-540

Random access on Tar archive

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.21
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rschimpf Robin Schimpf
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10h 40m
                  10h 40m