Interface Deflater<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deflate​(T object, java.io.OutputStream stream)
      deflate the given object into the provided stream.
      int getMaxByteCount()
      the method is called before each call to deflate.
    • Method Detail

      • deflate

        void deflate​(T object,
                     java.io.OutputStream stream)
              throws java.io.IOException
        deflate the given object into the provided stream. This method should NOT close the stream.
        Parameters:
        object -
        Throws:
        java.io.IOException
      • getMaxByteCount

        int getMaxByteCount()
        the method is called before each call to deflate. The call to deflate should not write more than the number of bytes returned by this method! It may write less. If a negative value is returned, then a resizeable buffer is used
        Returns: