Package org.brotli.wrapper.enc
Class EncoderJNI
- java.lang.Object
-
- org.brotli.wrapper.enc.EncoderJNI
-
class EncoderJNI extends java.lang.Object
JNI wrapper for brotli encoder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
EncoderJNI.Operation
private static class
EncoderJNI.PreparedDictionaryImpl
(package private) static class
EncoderJNI.Wrapper
-
Constructor Summary
Constructors Constructor Description EncoderJNI()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static boolean
nativeAttachDictionary(long[] context, java.nio.ByteBuffer dictionary)
private static java.nio.ByteBuffer
nativeCreate(long[] context)
private static void
nativeDestroy(long[] context)
private static void
nativeDestroyDictionary(java.nio.ByteBuffer dictionary)
private static java.nio.ByteBuffer
nativePrepareDictionary(java.nio.ByteBuffer dictionary, long type)
private static java.nio.ByteBuffer
nativePull(long[] context)
private static void
nativePush(long[] context, int length)
(package private) static PreparedDictionary
prepareDictionary(java.nio.ByteBuffer dictionary, int sharedDictionaryType)
Prepares raw or serialized dictionary for being used by encoder.
-
-
-
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 directsharedDictionaryType
- dictionary data type
-
-