Class CompressionMode.DeflateCompressor

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

    private static class CompressionMode.DeflateCompressor
    extends Compressor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean closed  
      (package private) byte[] compressed  
      (package private) java.util.zip.Deflater compressor  
    • Constructor Summary

      Constructors 
      Constructor Description
      DeflateCompressor​(int level)  
    • Field Detail

      • compressor

        final java.util.zip.Deflater compressor
      • compressed

        byte[] compressed
      • closed

        boolean closed
    • Constructor Detail

      • DeflateCompressor

        DeflateCompressor​(int level)
    • Method Detail

      • 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