Class RecyclableInflater

  • All Implemented Interfaces:
    java.lang.AutoCloseable, Resettable

    public class RecyclableInflater
    extends java.lang.Object
    implements Resettable, java.lang.AutoCloseable
    Wrapper class that allows an Inflater instance to be reset for reuse and then recycled by a Recycler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Called when the Recycler instance is closed, to destroy the Inflater instance.
      java.util.zip.Inflater getInflater()
      Get the Inflater instance.
      void reset()
      Called when an Inflater instance is recycled, to reset the inflater so it can accept new input.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RecyclableInflater

        public RecyclableInflater()
    • Method Detail

      • getInflater

        public java.util.zip.Inflater getInflater()
        Get the Inflater instance.
      • reset

        public void reset()
        Called when an Inflater instance is recycled, to reset the inflater so it can accept new input.
        Specified by:
        reset in interface Resettable
      • close

        public void close()
        Called when the Recycler instance is closed, to destroy the Inflater instance.
        Specified by:
        close in interface java.lang.AutoCloseable