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

ZstdCompressorOutputStream: specify compression level

    XMLWordPrintableJSON

    Details

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

      Description

      ZstdCompressorOutputStream allows to compress data using Zstandard, but the default compression level of 3 is hard-coded.

      Programs that wish to use a different compression level must reimplement ZstdCompressorOutputStream.

      I suggest we add a constructor that takes a compression level and passes it to 

      `new ZstdOutputStream(...)`.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              carmi Carmi Grushko
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified