Deprecated methods fix
The zstd-jni was updated to 1.4.4-7, which contains some changes making some constructors of ZstdOutputStream deprecated.
Just fix them.
*/
public ZstdCompressorOutputStream(final OutputStream outStream, int level, boolean closeFrameOnFlush,
boolean useChecksum) throws IOException {
- this.encOS = new ZstdOutputStream(outStream, level, closeFrameOnFlush, useChecksum);
+ this.encOS = new ZstdOutputStream(outStream, level);
+ this.encOS.setCloseFrameOnFlush(closeFrameOnFlush);
+ this.encOS.setChecksum(useChecksum);
}
/**
@@ -58,7 +60,8 @@ public ZstdCompressorOutputStream(final OutputStream outStream, int level, boole
*/
public ZstdCompressorOutputStream(final OutputStream outStream, int level, boolean closeFrameOnFlush)
throws IOException {
- this.encOS = new ZstdOutputStream(outStream, level, closeFrameOnFlush);
+ this.encOS = new ZstdOutputStream(outStream, level);
+ this.encOS.setCloseFrameOnFlush(closeFrameOnFlush);
}
/**
