Class StateCompressor<H extends Head,​T extends Tail>

    • Method Detail

      • deflate

        public void deflate​(State<H,​T> object,
                            java.io.OutputStream stream)
                     throws java.io.IOException
        Description copied from interface: Deflater
        deflate the given object into the provided stream. This method should NOT close the stream.
        Specified by:
        deflate in interface Deflater<H extends Head>
        Throws:
        java.io.IOException
      • inflate

        public State<H,​T> inflate​(java.io.InputStream stream)
                                 throws java.io.IOException
        Description copied from interface: Inflater
        read an object from a stream. The inflater should know when to stop reading and should NOT close the stream;
        Specified by:
        inflate in interface Inflater<H extends Head>
        Returns:
        Throws:
        java.io.IOException
      • getMaxByteCount

        public int getMaxByteCount()
        Description copied from interface: Deflater
        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
        Specified by:
        getMaxByteCount in interface Deflater<H extends Head>
        Returns: