The class for decompressing data. Data can be read directly from a String,
or from an object which must respond to read
Enumerable
Uncompress the file and call the block for each line, where lines are
separated by separator
With no associated block, open is a synonym for BZ2::Reader::new. If the
optional code block is given, it will be passed file as an argument, and
the file will automatically be closed when the block terminates.
Uncompress the file and reads the entire file as individual lines, and
returns those lines in an array. Lines are separated by separator
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
Terminate the uncompression.
If end has a true value, the file is closed. Otherwise
the file is put at the beginning of the next bzip component.
Return true if the file is closed
Execute the block for each line, where lines are separated by the optional
separator
Return true at end of file
"End Of Zip". Return true at the end of the zip component
Get the next 8-bit byte (0..255). Returns nil if called at end of file.
Reads the next line; lines are separated by separator. Returns nil
if called at end of file.
Return the current line number
Manually sets the current line number to the given value
Read at most number characters Returns nil if called at end of
file
Reads the next line; lines are separated by separator. Raise an
error at end of file
Reads all of the lines, and returns them in anArray. Lines are separated by
the optional separator
Return the String read by BZ2::Reader
but not used in the uncompression
Initialize the uncompression with the String str