CompressionError if called more than once, the output sink is
not set, or on internal liblzma errors.
void finish()Finalize the stream.
Flushes all remaining buffered data and writes the .xz stream footer. No further calls to write() or flush() are permitted.
CompressionError if called more than once, the output sink is
not set, or on internal liblzma errors.