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 enumprivate static class(package private) static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleannativeAttachDictionary(long[] context, ByteBuffer dictionary) private static ByteBuffernativeCreate(long[] context) private static voidnativeDestroy(long[] context) private static voidnativeDestroyDictionary(ByteBuffer dictionary) private static ByteBuffernativePrepareDictionary(ByteBuffer dictionary, long type) private static ByteBuffernativePull(long[] context) private static voidnativePush(long[] context, int length) (package private) static PreparedDictionaryprepareDictionary(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
-