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

seemingly duplicate functionality between TarArchive*putStream and Tar*putStream classes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0
    • None
    • None
    • I use win xp sp3, but this is probably irrelevant

    Description

      When I first looked at the Compress API, I began using the TarInputStream/TarOutputStream classes. But now I notice that there is also the TarArchiveInputStream/TarArchiveOutputStream classes. They seems fairly related to me, with a lot of duplicate functionality.

      In private email conversation with the developer Torsten Curdt about this, he wrote:

      **********
      You should be using TarArchive*putStream. All options should be available on the TarArchiveEntry. Which makes me wonder whether we should make the Tar*putStream classes package/private ...or merge them.
      **********

      I agree that the Tar*putStream classes should be merged or hidden in order to eliminate developer confusion, but ONLY AFTER you have the Tar*putStream classes truly support all options.

      Here is a critical one for me: I need long path name support, and said option is available on TarOutputStream via its setLongFileMode(int longFileMode) method, but I do not see that anywhere in TarArchiveOutputStream. There may be some more options like this.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bbatman Sam Smith
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: