CompressedInputStream andCompressedOutputStreamallow you to apply a compressionCodec to aninput or output stream.
Factory
TheCompressedInputStream$create() andCompressedOutputStream$create()factory methods instantiate the object and take the following arguments:
streamAnInputStream orOutputStream, respectivelycodecACodec, either aCodec instance or a stringcompression_levelcompression level for when thecodecargument is given as a string
Methods
Methods are inherited fromInputStream andOutputStream, respectively