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

        Parameters:
        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 java.util.zip.Inflater newObject()
        Specified by:
        newObject in class CompressionPool<java.util.zip.Inflater>
      • end

        protected void end​(java.util.zip.Inflater inflater)
        Specified by:
        end in class CompressionPool<java.util.zip.Inflater>
      • reset

        protected void reset​(java.util.zip.Inflater inflater)
        Specified by:
        reset in class CompressionPool<java.util.zip.Inflater>