Package org.brotli.wrapper.enc
Class EncoderJNI
- java.lang.Object
-
- org.brotli.wrapper.enc.EncoderJNI
-
class EncoderJNI extends java.lang.ObjectJNI wrapper for brotli encoder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classEncoderJNI.Operationprivate static classEncoderJNI.PreparedDictionaryImpl(package private) static classEncoderJNI.Wrapper
-
Constructor Summary
Constructors Constructor Description EncoderJNI()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static booleannativeAttachDictionary(long[] context, java.nio.ByteBuffer dictionary)private static java.nio.ByteBuffernativeCreate(long[] context)private static voidnativeDestroy(long[] context)private static voidnativeDestroyDictionary(java.nio.ByteBuffer dictionary)private static java.nio.ByteBuffernativePrepareDictionary(java.nio.ByteBuffer dictionary, long type)private static java.nio.ByteBuffernativePull(long[] context)private static voidnativePush(long[] context, int length)(package private) static PreparedDictionaryprepareDictionary(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
-
-