Module swim.deflate
Package swim.deflate

Class Deflate<O>

  • All Implemented Interfaces:
    Cloneable

    public class Deflate<O>
    extends swim.codec.Encoder<swim.codec.Encoder<?,​O>,​O>
    implements Cloneable
    • Constructor Detail

      • Deflate

        public Deflate​(swim.codec.Encoder<?,​O> input,
                       int wrap,
                       int level,
                       int windowBits,
                       int memLevel,
                       int strategy)
      • Deflate

        public Deflate​(swim.codec.Encoder<?,​O> input,
                       int wrap,
                       int level,
                       int windowBits,
                       int memlevel)
      • Deflate

        public Deflate​(swim.codec.Encoder<?,​O> input,
                       int wrap,
                       int level,
                       int windowBits)
      • Deflate

        public Deflate​(swim.codec.Encoder<?,​O> input,
                       int wrap,
                       int level)
      • Deflate

        public Deflate​(swim.codec.Encoder<?,​O> input,
                       int wrap)
      • Deflate

        public Deflate​(swim.codec.Encoder<?,​O> input)
      • Deflate

        public Deflate​(int wrap,
                       int level,
                       int windowBits,
                       int memLevel,
                       int strategy)
      • Deflate

        public Deflate​(int wrap,
                       int level,
                       int windowBits,
                       int memlevel)
      • Deflate

        public Deflate​(int wrap,
                       int level,
                       int windowBits)
      • Deflate

        public Deflate​(int wrap,
                       int level)
      • Deflate

        public Deflate​(int wrap)
      • Deflate

        public Deflate()
    • Method Detail

      • deflateInit

        protected void deflateInit​(int wrap,
                                   int level,
                                   int windowBits,
                                   int memLevel,
                                   int strategy)
      • deflateResetKeep

        public void deflateResetKeep()
      • deflateReset

        public void deflateReset()
      • deflateParams

        public void deflateParams​(int level,
                                  int strategy)
      • flush

        public Deflate<O> flush​(int flush)
      • flush_pending

        protected void flush_pending()
      • feed

        public Deflate<O> feed​(swim.codec.Encoder<?,​O> input)
        Overrides:
        feed in class swim.codec.Encoder<swim.codec.Encoder<?,​O>,​O>
      • pull

        public swim.codec.Encoder<swim.codec.Encoder<?,​O>,​O> pull​(swim.codec.OutputBuffer<?> output)
        Specified by:
        pull in class swim.codec.Encoder<swim.codec.Encoder<?,​O>,​O>
      • deflate

        public boolean deflate​(int flush)
      • deflateEnd

        protected void deflateEnd()
      • read_buf

        protected int read_buf​(byte[] buf,
                               int start,
                               int size)
      • fill_window

        protected void fill_window()
      • deflate_stored

        protected int deflate_stored​(int flush)
      • deflate_fast

        protected int deflate_fast​(int flush)
      • deflate_slow

        protected int deflate_slow​(int flush)
      • deflate_rle

        protected int deflate_rle​(int flush)
      • deflate_huff

        protected int deflate_huff​(int flush)