Class EncoderJNI.Wrapper
- java.lang.Object
-
- com.aayushatharva.brotli4j.encoder.EncoderJNI.Wrapper
-
- Enclosing class:
- EncoderJNI
public static class EncoderJNI.Wrapper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected long[]context
-
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 booleanattachDictionary(java.nio.ByteBuffer dictionary)voiddestroy()Releases native resources.java.nio.ByteBuffergetInputBuffer()booleanhasMoreOutput()booleanhasRemainingInput()booleanisFinished()booleanisSuccess()java.nio.ByteBufferpull()voidpush(EncoderJNI.Operation op, int length)
-
-
-
Constructor Detail
-
Wrapper
public Wrapper(int inputBufferSize, int quality, int lgwin, Encoder.Mode mode) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
attachDictionary
public boolean attachDictionary(java.nio.ByteBuffer dictionary)
-
push
public void push(EncoderJNI.Operation op, int length)
-
isSuccess
public boolean isSuccess()
-
hasMoreOutput
public boolean hasMoreOutput()
-
hasRemainingInput
public boolean hasRemainingInput()
-
isFinished
public boolean isFinished()
-
getInputBuffer
public java.nio.ByteBuffer getInputBuffer()
-
pull
public java.nio.ByteBuffer pull()
-
destroy
public void destroy()
Releases native resources.
-
-