Class | BZ2::Reader |
In: |
bz2.rb
|
Parent: | Object |
The class for decompressing data. Data can be read directly from a String, or from an object which must respond to read
Associate a new bz2 reader with object.
object must be a String which contains compressed data, or an object which respond to read(size)
If small is true, the library will use an alternative decompression algorithm which uses less memory but at the cost of decompressing more slowly
Call Kernel#open(filename), and associate it a new BZ2::Reader. The bz2 object is passed as an argument to the block.
The object is closed at the end of the block
See new for small
Uncompress the file and reads the entire file as individual lines, and returns those lines in an array. Lines are separated by separator
Terminate the uncompression of the current zip component, and keep the bz2 active (to read another zip component)