case classGzCompressBuffer(out: OutputStream) extends Product with Serializable
Compress many Array[Byte] in a OutputStream
import com.github.gekomad.scalacompress.Compressors._
val gzStream = GzCompressBuffer(new FileOutputStream("/tmp/file.gz"))
val foo: Array[Byte] = "foo".getBytes(StandardCharsets.UTF_8)
val bar: Array[Byte] = "bar".getBytes(StandardCharsets.UTF_8)
val c1: Try[Unit] = gzStream.compressBuffer(foo)
val c2: Try[Unit] = gzStream.compressBuffer(bar)
val cl: Try[Unit] = gzStream.close()
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Compress many Array[Byte] in a OutputStream