Method Bz2.Deflate()->read() Method read string read(string data) Description This function feeds the data to the internal buffers of the Deflate object. Then it compresses all buffered data and returns the compressed data as a string See also Bz2.Deflate->feed() Bz2.Deflate->finish()