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[]
context
private boolean
fresh
private java.nio.ByteBuffer
inputBuffer
private DecoderJNI.Status
lastStatus
-
Constructor Summary
Constructors Constructor Description Wrapper(int inputBufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
attachDictionary(java.nio.ByteBuffer dictionary)
void
destroy()
Releases native resources.protected void
finalize()
java.nio.ByteBuffer
getInputBuffer()
DecoderJNI.Status
getStatus()
boolean
hasOutput()
private void
parseStatus()
java.nio.ByteBuffer
pull()
void
push(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:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-