Package com.github.luben.zstd
Class BaseZstdBufferDecompressingStreamNoFinalizer
- java.lang.Object
-
- com.github.luben.zstd.BaseZstdBufferDecompressingStreamNoFinalizer
-
- All Implemented Interfaces:
java.io.Closeable
- Direct Known Subclasses:
ZstdBufferDecompressingStreamNoFinalizer,ZstdDirectBufferDecompressingStreamNoFinalizer
public abstract class BaseZstdBufferDecompressingStreamNoFinalizer extends java.lang.Object implements java.io.Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()booleanhasRemaining()abstract intread(java.nio.ByteBuffer target)protected java.nio.ByteBufferrefill(java.nio.ByteBuffer toRefill)Override this method in case the byte buffer passed to the constructor might not contain the full compressed streamBaseZstdBufferDecompressingStreamNoFinalizersetDict(byte[] dict)BaseZstdBufferDecompressingStreamNoFinalizersetDict(ZstdDictDecompress dict)BaseZstdBufferDecompressingStreamNoFinalizersetLongMax(int windowLogMax)
-
-
-
Method Detail
-
refill
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- Parameters:
toRefill- current buffer- Returns:
- either the current buffer (but refilled and flipped if there was new content) or a new buffer.
-
hasRemaining
public boolean hasRemaining()
-
setDict
public BaseZstdBufferDecompressingStreamNoFinalizer setDict(byte[] dict) throws java.io.IOException
- Throws:
java.io.IOException
-
setDict
public BaseZstdBufferDecompressingStreamNoFinalizer setDict(ZstdDictDecompress dict) throws java.io.IOException
- Throws:
java.io.IOException
-
setLongMax
public BaseZstdBufferDecompressingStreamNoFinalizer setLongMax(int windowLogMax) throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
closein interfacejava.io.Closeable
-
read
public abstract int read(java.nio.ByteBuffer target) throws java.io.IOException- Throws:
java.io.IOException
-
-