Package org.brotli.wrapper.enc
Class EncoderJNI
java.lang.Object
org.brotli.wrapper.enc.EncoderJNI
JNI wrapper for brotli encoder.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum
private static class
(package private) static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
nativeAttachDictionary
(long[] context, ByteBuffer dictionary) private static ByteBuffer
nativeCreate
(long[] context) private static void
nativeDestroy
(long[] context) private static void
nativeDestroyDictionary
(ByteBuffer dictionary) private static ByteBuffer
nativePrepareDictionary
(ByteBuffer dictionary, long type) private static ByteBuffer
nativePull
(long[] context) private static void
nativePush
(long[] context, int length) (package private) static PreparedDictionary
prepareDictionary
(ByteBuffer dictionary, int sharedDictionaryType) Prepares raw or serialized dictionary for being used by encoder.
-
Constructor Details
-
EncoderJNI
EncoderJNI()
-
-
Method Details
-
nativeCreate
-
nativePush
private static void nativePush(long[] context, int length) -
nativePull
-
nativeDestroy
private static void nativeDestroy(long[] context) -
nativeAttachDictionary
-
nativePrepareDictionary
-
nativeDestroyDictionary
-
prepareDictionary
Prepares raw or serialized dictionary for being used by encoder.- Parameters:
dictionary
- raw / serialized dictionary data; MUST be directsharedDictionaryType
- dictionary data type
-