Package org.brotli.wrapper.dec
Class DecoderJNI.Wrapper
- java.lang.Object
-
- org.brotli.wrapper.dec.DecoderJNI.Wrapper
-
- Enclosing class:
- DecoderJNI
public static class DecoderJNI.Wrapper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private long[]contextprivate booleanfreshprivate java.nio.ByteBufferinputBufferprivate DecoderJNI.StatuslastStatus
-
Constructor Summary
Constructors Constructor Description Wrapper(int inputBufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanattachDictionary(java.nio.ByteBuffer dictionary)voiddestroy()Releases native resources.protected voidfinalize()java.nio.ByteBuffergetInputBuffer()DecoderJNI.StatusgetStatus()booleanhasOutput()private voidparseStatus()java.nio.ByteBufferpull()voidpush(int length)
-
-
-
Field Detail
-
context
private final long[] context
-
inputBuffer
private final java.nio.ByteBuffer inputBuffer
-
lastStatus
private DecoderJNI.Status lastStatus
-
fresh
private boolean fresh
-
-
Method Detail
-
attachDictionary
public boolean attachDictionary(java.nio.ByteBuffer dictionary)
-
push
public void push(int length)
-
parseStatus
private void parseStatus()
-
getStatus
public DecoderJNI.Status getStatus()
-
getInputBuffer
public java.nio.ByteBuffer getInputBuffer()
-
hasOutput
public boolean hasOutput()
-
pull
public java.nio.ByteBuffer pull()
-
destroy
public void destroy()
Releases native resources.
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-