ZstdCompressor.finish

void finish()

Finalize the stream.

Flushes all remaining buffered data and marks the compressor as finished. No further calls to write() or flush() are permitted.

Throws

CompressionError if called more than once, the output sink is

not set, or on internal ZSTD errors.