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

Add DEFLATE support

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.9
    • Compressors

    Description

      GZIP is not a compression algorithm "as such". The de facto (and currently the only supported) compression algorithm it uses is DEFLATE.
      GZIP adds a header of minimum 10 bytes and a footer of 8 bytes to a "deflated" data stream. Find out more here: http://en.wikipedia.org/wiki/Gzip#File_format

      I have no problem with the current GZIP support, but it would be nice if CommonsCompress would also have compression and decompression support for "raw" DEFLATE streams and DEFLATE streams with the zlib header.

      Similarly to the GZIP support in CommonsCompress these functionality can be implemented very easily using the standard java.util.zip package, as done in the provided patch.

      Attachments

        1. COMPRESS-263_DeflateSupport.patch
          26 kB
          Matthias Stevens
        2. COMPRESS-263_DeflateSupport_v1.1.patch
          29 kB
          Matthias Stevens
        3. bla.tar.deflatez
          0.5 kB
          Matthias Stevens
        4. bla.tar.deflate
          0.5 kB
          Matthias Stevens

        Activity

          People

            Unassigned Unassigned
            Matthias83 Matthias Stevens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: