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