Package org.brotli.wrapper.enc
Class EncoderJNI.Wrapper
- java.lang.Object
-
- org.brotli.wrapper.enc.EncoderJNI.Wrapper
-
- Enclosing class:
- EncoderJNI
static class EncoderJNI.Wrapper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected long[]contextprivate booleanfreshprivate java.nio.ByteBufferinputBuffer
-
Constructor Summary
Constructors Constructor Description Wrapper(int inputBufferSize, int quality, int lgwin, Encoder.Mode mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanattachDictionary(java.nio.ByteBuffer dictionary)(package private) voiddestroy()Releases native resources.protected voidfinalize()(package private) java.nio.ByteBuffergetInputBuffer()(package private) booleanhasMoreOutput()(package private) booleanhasRemainingInput()(package private) booleanisFinished()(package private) booleanisSuccess()(package private) java.nio.ByteBufferpull()(package private) voidpush(EncoderJNI.Operation op, int length)
-
-
-
Constructor Detail
-
Wrapper
Wrapper(int inputBufferSize, int quality, int lgwin, Encoder.Mode mode) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
attachDictionary
boolean attachDictionary(java.nio.ByteBuffer dictionary)
-
push
void push(EncoderJNI.Operation op, int length)
-
isSuccess
boolean isSuccess()
-
hasMoreOutput
boolean hasMoreOutput()
-
hasRemainingInput
boolean hasRemainingInput()
-
isFinished
boolean isFinished()
-
getInputBuffer
java.nio.ByteBuffer getInputBuffer()
-
pull
java.nio.ByteBuffer pull()
-
destroy
void destroy()
Releases native resources.
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-