Class EncoderJNI


  • class EncoderJNI
    extends java.lang.Object
    JNI wrapper for brotli encoder.
    • Constructor Detail

      • EncoderJNI

        EncoderJNI()
    • Method Detail

      • nativeCreate

        private static java.nio.ByteBuffer nativeCreate​(long[] context)
      • nativePush

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

        private static java.nio.ByteBuffer nativePull​(long[] context)
      • nativeDestroy

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

        private static boolean nativeAttachDictionary​(long[] context,
                                                      java.nio.ByteBuffer dictionary)
      • nativePrepareDictionary

        private static java.nio.ByteBuffer nativePrepareDictionary​(java.nio.ByteBuffer dictionary,
                                                                   long type)
      • nativeDestroyDictionary

        private static void nativeDestroyDictionary​(java.nio.ByteBuffer dictionary)
      • prepareDictionary

        static PreparedDictionary prepareDictionary​(java.nio.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