compression function

Compressed stream classes

Compressed stream classes

CompressedInputStream and CompressedOutputStream

allow you to apply a compression Codec to an input or output stream. class

Factory

The CompressedInputStream$create() and CompressedOutputStream$create()

factory methods instantiate the object and take the following arguments:

  • stream An InputStream or OutputStream , respectively
  • codec A Codec, either a Codec instance or a string
  • compression_level compression level for when the codec argument is given as a string

Methods

Methods are inherited from InputStream and OutputStream , respectively

  • Maintainer: Jonathan Keane
  • License: Apache License (>= 2.0)
  • Last published: 2025-02-26