Class DeflateCompressor

    • Constructor Detail

      • DeflateCompressor

        public DeflateCompressor​(int level,
                                 boolean nowrap)
    • Method Detail

      • $lessinit$greater$default$1

        public static int $lessinit$greater$default$1()
      • $lessinit$greater$default$2

        public static boolean $lessinit$greater$default$2()
      • MinBufferSize

        public static int MinBufferSize()
      • drainDeflater

        public static ByteString drainDeflater​( deflater,
                                               byte[] buffer,
                                               ByteStringBuilder result)
      • drainDeflater$default$3

        public static ByteStringBuilder drainDeflater$default$3()
      • deflater

        protected deflater()
      • flush

        public final ByteString flush()
        Description copied from class: Compressor
        Flushes any output data and returns the currently remaining compressed data.
        Specified by:
        flush in class Compressor
      • finish

        public final ByteString finish()
        Description copied from class: Compressor
        Closes this compressed stream and return the remaining compressed data. After calling this method, this Compressor cannot be used any further.
        Specified by:
        finish in class Compressor
      • compressWithBuffer

        protected ByteString compressWithBuffer​(ByteString input,
                                                byte[] buffer)
      • flushWithBuffer

        protected ByteString flushWithBuffer​(byte[] buffer)
      • finishWithBuffer

        protected ByteString finishWithBuffer​(byte[] buffer)
      • close

        public void close()
        Description copied from class: Compressor
        Make sure any resources have been released
        Specified by:
        close in class Compressor