Lz4Compressor.finish

void finish()

Finalise the compression stream.

After finish has been called, further write or flush calls will fail with ErrorCode.CLOSED.

Throws

- CompressionError with ErrorCode.INVALID_INPUT if the

output sink has not been set.

  • CompressionError with ErrorCode.CLOSED if called more

than once.