Package net.i2p.util

Class ReusableGZIPInputStream

All Implemented Interfaces:
Closeable, AutoCloseable

public class ReusableGZIPInputStream extends ResettableGZIPInputStream
Provide a cache of reusable GZIP unzipper streams. This provides stream output only, and therefore can handle unlimited size.
  • Method Details

    • acquire

      public static ReusableGZIPInputStream acquire()
      Pull a cached instance
    • release

      public static void release(ReusableGZIPInputStream released)
      Release an instance back into the cache (this will reset the state)
    • clearCache

      public static void clearCache()
      Clear the cache.
      Since:
      0.9.21