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
|
ZstdDirectBufferDecompressingStream |
setDict(byte[] dict) |
ZstdDirectBufferDecompressingStream |
setDict(ZstdDictDecompress dict) |
void |
setFinalize(boolean finalize)
Enable or disable class finalizers
If finalizers are disabled the responsibility fir calling the `close` method is on the consumer.
|
public ZstdDirectBufferDecompressingStream(java.nio.ByteBuffer source)
protected java.nio.ByteBuffer refill(java.nio.ByteBuffer toRefill)
toRefill - current bufferpublic void setFinalize(boolean finalize)
finalize, - default `true` - finalizers are enabledpublic boolean hasRemaining()
public static int recommendedTargetBufferSize()
public ZstdDirectBufferDecompressingStream setDict(byte[] dict) throws java.io.IOException
java.io.IOExceptionpublic ZstdDirectBufferDecompressingStream setDict(ZstdDictDecompress dict) throws java.io.IOException
java.io.IOExceptionpublic int read(java.nio.ByteBuffer target)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable