Class InflaterCache

  • public class InflaterCache
    extends Object
    Creates zlib based inflaters as necessary for object decompression.
    • Method Detail

      • get

        public static Inflater get()
        Obtain an Inflater for decompression.

        Inflaters obtained through this cache should be returned (if possible) by release(Inflater) to avoid garbage collection and reallocation.

        an available inflater. Never null.
      • release

        public static void release​(Inflater i)
        Release an inflater previously obtained from this cache.
        i - the inflater to return. May be null, in which case this method does nothing.