net.i2p.util

## Class ReusableGZIPInputStream

- java.lang.Object
- - java.io.InputStream
  - - java.io.FilterInputStream
    - - java.util.zip.InflaterInputStream
      - - net.i2p.util.ResettableGZIPInputStream
        - - net.i2p.util.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.

- - ### Field Summary

    - ### Fields inherited from class java.util.zip.InflaterInputStream

      `buf, inf, len`

    - ### Fields inherited from class java.io.FilterInputStream

      `in`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static ReusableGZIPInputStream` | `acquire()` Pull a cached instance
    `static void` | `clearCache()` Clear the cache.
    `static void` | `release(ReusableGZIPInputStream released)` Release an instance back into the cache (this will reset the state)

    - ### Methods inherited from class net.i2p.util.ResettableGZIPInputStream

      `close, destroy, getFinished, getRemaining, getTotalExpanded, getTotalRead, initialize, read, read, read, toString`

    - ### Methods inherited from class java.util.zip.InflaterInputStream

      `available, fill, mark, markSupported, reset, skip`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### acquire

          public static ReusableGZIPInputStream acquire()

      Pull a cached instance

    - #### clearCache

          public static void clearCache()

      Clear the cache.

    - #### release

          public static void release(ReusableGZIPInputStream released)

      Release an instance back into the cache (this will reset the state)