CompressionError with ErrorCode.INVALID_INPUT if the
output sink has not been set.
CompressionErrorwithErrorCode.CLOSEDif called more
than once.
void finish()Finalise the compression stream.
After finish has been called, further write or flush calls will fail with ErrorCode.CLOSED.
CompressionError with ErrorCode.INVALID_INPUT if the
output sink has not been set.
CompressionError with ErrorCode.CLOSED if called morethan once.