public class ZstdInputStream
extends java.io.FilterInputStream
Modifier and Type | Field and Description |
---|---|
protected int |
blockSize |
protected long |
ctx |
protected byte[] |
iBuff |
protected com.github.luben.zstd.ZstdLegacyInputStream |
legacy |
protected static int |
MAGIC_BASE |
protected java.nio.ByteBuffer |
oBuff |
protected int |
oBuffSize |
protected int |
oEnd |
protected int |
oPos |
Constructor and Description |
---|
ZstdInputStream(java.io.InputStream inStream) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
protected static long |
createDCtx() |
protected static int |
decompressBegin(long ctx) |
protected static int |
decompressContinue(long ctx,
java.nio.ByteBuffer dst,
long dstOffset,
long dstSize,
byte[] src,
long srcOffset,
long srcSize) |
protected static int |
findBlockSize(byte[] src,
long srcSize) |
protected static int |
findOBuffSize(byte[] src,
long srcSize) |
protected static int |
freeDCtx(long ctx) |
boolean |
markSupported() |
protected static int |
nextSrcSizeToDecompress(long ctx) |
int |
read(byte[] dst,
int offset,
int len) |
long |
skip(long n) |
protected long ctx
protected int blockSize
protected int oBuffSize
protected java.nio.ByteBuffer oBuff
protected int oPos
protected int oEnd
protected byte[] iBuff
protected static final int MAGIC_BASE
protected com.github.luben.zstd.ZstdLegacyInputStream legacy
public ZstdInputStream(java.io.InputStream inStream) throws java.io.IOException
java.io.IOException
protected static long createDCtx()
protected static int decompressBegin(long ctx)
protected static int freeDCtx(long ctx)
protected static int findBlockSize(byte[] src, long srcSize)
protected static int findOBuffSize(byte[] src, long srcSize)
protected static int nextSrcSizeToDecompress(long ctx)
protected static int decompressContinue(long ctx, java.nio.ByteBuffer dst, long dstOffset, long dstSize, byte[] src, long srcOffset, long srcSize)
public int read(byte[] dst, int offset, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.FilterInputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.FilterInputStream
public long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterInputStream
java.io.IOException