Class InflaterPool

    • Constructor Detail

      • InflaterPool

        public InflaterPool​(int capacity,
                            boolean nowrap)
        Create a Pool of Inflater instances.

        If given a capacity equal to zero the Inflaters will not be pooled and will be created on acquire and ended on release. If given a negative capacity equal to zero there will be no size restrictions on the InflaterPool

        capacity - maximum number of Inflaters which can be contained in the pool
        nowrap - if true then use GZIP compatible compression for all new Inflater objects
    • Method Detail

      • newObject

        protected newObject()
        Specified by:
        newObject in class CompressionPool<>
      • end

        protected void end​( inflater)
        Specified by:
        end in class CompressionPool<>
      • reset

        protected void reset​( inflater)
        Specified by:
        reset in class CompressionPool<>