case classGzCompressBuffer(out: OutputStream) extends Product with Serializable
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()
out
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any