Class ZstdDictCompress

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

    public class ZstdDictCompress
    extends SharedDictBase
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int level  
      private long nativePtr  
    • Constructor Summary

      Constructors 
      Constructor Description
      ZstdDictCompress​(byte[] dict, int level)
      Convenience constructor to create a new dictionary for use with fast compress
      ZstdDictCompress​(byte[] dict, int offset, int length, int level)
      Create a new dictionary for use with fast compress
    • Field Detail

      • nativePtr

        private long nativePtr
      • level

        private int level
    • Constructor Detail

      • ZstdDictCompress

        public ZstdDictCompress​(byte[] dict,
                                int level)
        Convenience constructor to create a new dictionary for use with fast compress
        Parameters:
        dict - buffer containing dictionary to load/parse with exact length
        level - compression level
      • ZstdDictCompress

        public ZstdDictCompress​(byte[] dict,
                                int offset,
                                int length,
                                int level)
        Create a new dictionary for use with fast compress
        Parameters:
        dict - buffer containing dictionary
        offset - the offset into the buffer to read from
        length - number of bytes to use from the buffer
        level - compression level
    • Method Detail

      • init

        private void init​(byte[] dict,
                          int dict_offset,
                          int dict_size,
                          int level)
      • free

        private void free()
      • level

        int level()