Class DeflateWithPresetDictCompressionMode.DeflateWithPresetDictCompressor

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    DeflateWithPresetDictCompressionMode

    private static class DeflateWithPresetDictCompressionMode.DeflateWithPresetDictCompressor
    extends Compressor
    • Field Detail

      • compressor

        final java.util.zip.Deflater compressor
      • compressed

        byte[] compressed
      • closed

        boolean closed
      • buffer

        byte[] buffer
    • Constructor Detail

      • DeflateWithPresetDictCompressor

        DeflateWithPresetDictCompressor​(int level)
    • Method Detail

      • doCompress

        private void doCompress​(byte[] bytes,
                                int off,
                                int len,
                                DataOutput out)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • compress

        public void compress​(ByteBuffersDataInput buffersInput,
                             DataOutput out)
                      throws java.io.IOException
        Description copied from class: Compressor
        Compress bytes into out. It is the responsibility of the compressor to add all necessary information so that a Decompressor will know when to stop decompressing bytes from the stream.
        Specified by:
        compress in class Compressor
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException