Commons Compress
  1. Commons Compress
  2. COMPRESS-220

createCompressorInputStream with decompressConcatenated option

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.1
    • Fix Version/s: 1.5
    • Component/s: Compressors
    • Labels:
      None

      Description

      I want to use CompressorStreamFactory.createCompressorInputStream to detect the compressor type for me and return the correct stream type, but I also want the stream to have decompressConcatenated turned on.

      I can check the type of the stream returned to me, use the two-arg constructor for that type and throw the original returned object away, but it would be simpler if there were either additional functions to do this for me in CompressorStreamFactory, i.e.:
      createCompressorInputStream(final InputStream in, boolean decompressConcatenated)
      createCompressorInputStream(final String name, final InputStream in, boolean decompressConcatenated)

      or through another Factory method, e.g. CompressorConcatStreamFactory.

      Thoughts?

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Gregory Chanan
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development