Top Deprecated
zstd-jni 1.5.5-11

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
com.github.luben.zstd.Zstd.compressUsingDict(byte[] dst, byte[] src, byte[] dict, int level)

Use compress(dst, src, dict, level) instead

com.github.luben.zstd.Zstd.decompressUsingDict(byte[] dst, byte[] src, byte[] dict)

Use decompress(dst, src, dict) instead

Returns:

the number of bytes of the original buffer 0 if the original size is not known
com.github.luben.zstd.Zstd.decompressedDirectByteBufferSize
(ByteBuffer
the compressed buffer
src
,
int
offset of the compressed data inside the src buffer
srcPosition
,
int
length of the compressed data inside the src buffe
srcSize
,
boolean
whether the buffer contains a magicless frame
magicless
)

Use `getDirectByteBufferFrameContentSize` to also return error codes from zstd

Returns:

the number of bytes of the original buffer 0 if the original size is not known
com.github.luben.zstd.Zstd.decompressedDirectByteBufferSize
(ByteBuffer
the compressed buffer
src
,
int
offset of the compressed data inside the src buffer
srcPosition
,
int
length of the compressed data inside the src buffe
srcSize
)

Use `getDirectByteBufferFrameContentSize` that return also the errors

Returns:

the number of bytes of the original buffer 0 if the original size is not known
com.github.luben.zstd.Zstd.decompressedSize
(byte[]
the compressed buffer
src
,
int
offset of the compressed data inside the src buffer
srcPosition
,
int
length of the compressed data inside the src buffer
srcSize
,
boolean
whether the buffer contains a magicless frame
magicless
)

Use `getFrameContentSize` to also return error codes from zstd

Returns:

the number of bytes of the original buffer 0 if the original size is not known
com.github.luben.zstd.Zstd.decompressedSize
(byte[]
the compressed buffer
src
,
int
offset of the compressed data inside the src buffer
srcPosition
,
int
length of the compressed data inside the src buffer
srcSize
)

Use `getFrameContentSize` to also return error codes from zstd

Returns:

the number of bytes of the original buffer 0 if the original size is not known
com.github.luben.zstd.Zstd.decompressedSize
(byte[]
the compressed buffer
src
,
int
offset of the compressed data inside the src buffer
srcPosition
)

Use `getFrameContentSize` to also return error codes from zstd

Returns:

the number of bytes of the original buffer 0 if the original size is not known
com.github.luben.zstd.Zstd.decompressedSize
(byte[]
the compressed buffer
src
)

Use `getFrameContentSize` to also return error codes from zstd

Returns:

the number of bytes of the original buffer 0 if the original size is not known
com.github.luben.zstd.Zstd.decompressedSize
(ByteBuffer
the compressed buffer. must be direct. It is assumed that the position() of this buffer marks the beginning of the compressed data whose decompressed size is being queried, and that the limit() of this buffer marks its end.
srcBuf
)

Use `getDirectByteBufferFrameContentSize` that return also the errors

com.github.luben.zstd.ZstdInputStream.setFinalize(boolean
default `true` - finalizers are enabled
finalize
)

If you don't rely on finalizers, use `ZstdInputStreamNoFinalizer` instead, instances of `ZstdInputStream` will always try to close/release in the finalizer.

com.github.luben.zstd.ZstdOutputStream.ZstdOutputStream(OutputStream outStream, int level, boolean closeFrameOnFlush, boolean useChecksums)

Use ZstdOutputStream() or ZstdOutputStream(level) and set the other params with the setters

com.github.luben.zstd.ZstdOutputStream.ZstdOutputStream(OutputStream outStream, int level, boolean closeFrameOnFlush)

Use ZstdOutputStream() or ZstdOutputStream(level) and set the other params with the setters

com.github.luben.zstd.ZstdOutputStream.setFinalize(boolean
default `true` - finalizers are enabled
finalize
)

If you don't rely on finalizers, use `ZstdOutputStreamNoFinalizer` instead.