Class StandardCompressionOptions

java.lang.Object
io.netty.handler.codec.compression.StandardCompressionOptions

public final class StandardCompressionOptions extends java.lang.Object
Standard Compression Options for GzipOptions and DeflateOptions
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Default implementation of DeflateOptions with compressionLevel set to 6, windowBits set to 15 and memLevel set to 8.
    deflate(int compressionLevel, int windowBits, int memLevel)
    Create a new DeflateOptions Instance
    Default implementation of GzipOptions with compressionLevel() set to 6, windowBits() set to 15 and memLevel() set to 8.
    gzip(int compressionLevel, int windowBits, int memLevel)
    Create a new GzipOptions Instance
    Create a new SnappyOptions

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StandardCompressionOptions

      private StandardCompressionOptions()
  • Method Details

    • snappy

      public static SnappyOptions snappy()
      Create a new SnappyOptions
    • gzip

      public static GzipOptions gzip()
      Default implementation of GzipOptions with compressionLevel() set to 6, windowBits() set to 15 and memLevel() set to 8.
    • gzip

      public static GzipOptions gzip(int compressionLevel, int windowBits, int memLevel)
      Create a new GzipOptions Instance
      Parameters:
      compressionLevel - 1 yields the fastest compression and 9 yields the best compression. 0 means no compression. The default compression level is 6.
      windowBits - The base two logarithm of the size of the history buffer. The value should be in the range 9 to 15 inclusive. Larger values result in better compression at the expense of memory usage. The default value is 15.
      memLevel - How much memory should be allocated for the internal compression state. 1 uses minimum memory and 9 uses maximum memory. Larger values result in better and faster compression at the expense of memory usage. The default value is 8
    • deflate

      public static DeflateOptions deflate()
      Default implementation of DeflateOptions with compressionLevel set to 6, windowBits set to 15 and memLevel set to 8.
    • deflate

      public static DeflateOptions deflate(int compressionLevel, int windowBits, int memLevel)
      Create a new DeflateOptions Instance
      Parameters:
      compressionLevel - 1 yields the fastest compression and 9 yields the best compression. 0 means no compression. The default compression level is 6.
      windowBits - The base two logarithm of the size of the history buffer. The value should be in the range 9 to 15 inclusive. Larger values result in better compression at the expense of memory usage. The default value is 15.
      memLevel - How much memory should be allocated for the internal compression state. 1 uses minimum memory and 9 uses maximum memory. Larger values result in better and faster compression at the expense of memory usage. The default value is 8