Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6282206

GZIPOutputStream needs to be refactored; can't reuse a Deflater

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • core-libs

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      Based on profiling, it looks like creating a Deflater() is expensive. I'd like to create one Deflater, then reuse it with multiple instances of GZipOutputStream. It doesn't look like there's a way to do that. DeflaterOutputStream and GZipOutputStream could use a good dose of refactoring to make them more amenable to subclassing.


      REPRODUCIBILITY :
      This bug can be reproduced always.
      ###@###.### 2005-06-08 06:57:29 GMT

            sherman Xueming Shen
            jssunw Jitender S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: