public class ZstdInputStream extends ZstdInputStreamNoFinalizer
Constructor and Description |
---|
ZstdInputStream(java.io.InputStream inStream)
create a new decompressing InputStream
|
ZstdInputStream(java.io.InputStream inStream,
BufferPool bufferPool)
create a new decompressing InputStream
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
void |
setFinalize(boolean finalize)
Deprecated.
If you don't rely on finalizers, use `ZstdInputStreamNoFinalizer` instead, instances of
`ZstdInputStream` will always try to close/release in the finalizer.
|
available, close, getContinuous, markSupported, read, read, recommendedDInSize, recommendedDOutSize, setContinuous, setDict, setDict, skip
public ZstdInputStream(java.io.InputStream inStream) throws java.io.IOException
inStream
- the stream to wrapjava.io.IOException
public ZstdInputStream(java.io.InputStream inStream, BufferPool bufferPool) throws java.io.IOException
inStream
- the stream to wrapbufferPool
- the pool to fetch and return buffersjava.io.IOException
public void setFinalize(boolean finalize)
finalize
- default `true` - finalizers are enabledprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable