public class ZstdDirectBufferDecompressingStream
extends java.lang.Object
implements java.io.Closeable
Constructor and Description |
---|
ZstdDirectBufferDecompressingStream(java.nio.ByteBuffer source) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
boolean |
hasRemaining() |
int |
read(java.nio.ByteBuffer target) |
static int |
recommendedTargetBufferSize() |
protected java.nio.ByteBuffer |
refill(java.nio.ByteBuffer toRefill)
Override this method in case the byte buffer passed to the constructor might not contain the full compressed stream
|
public ZstdDirectBufferDecompressingStream(java.nio.ByteBuffer source)
protected java.nio.ByteBuffer refill(java.nio.ByteBuffer toRefill)
toRefill
- current bufferpublic boolean hasRemaining()
public static int recommendedTargetBufferSize()
public int read(java.nio.ByteBuffer target) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable