Class EncoderJNI

java.lang.Object
org.brotli.wrapper.enc.EncoderJNI

class EncoderJNI extends Object
JNI wrapper for brotli encoder.
  • Constructor Details

    • EncoderJNI

      EncoderJNI()
  • Method Details

    • nativeCreate

      private static ByteBuffer nativeCreate(long[] context)
    • nativePush

      private static void nativePush(long[] context, int length)
    • nativePull

      private static ByteBuffer nativePull(long[] context)
    • nativeDestroy

      private static void nativeDestroy(long[] context)
    • nativeAttachDictionary

      private static boolean nativeAttachDictionary(long[] context, ByteBuffer dictionary)
    • nativePrepareDictionary

      private static ByteBuffer nativePrepareDictionary(ByteBuffer dictionary, long type)
    • nativeDestroyDictionary

      private static void nativeDestroyDictionary(ByteBuffer dictionary)
    • prepareDictionary

      static PreparedDictionary prepareDictionary(ByteBuffer dictionary, int sharedDictionaryType)
      Prepares raw or serialized dictionary for being used by encoder.
      Parameters:
      dictionary - raw / serialized dictionary data; MUST be direct
      sharedDictionaryType - dictionary data type