- Inheritance
- < Object
Zlib::GzipFile is an abstract class for handling a gzip formatted compressed file. The operations are defined in the subclasses, Zlib::GzipReader for reading, and Zlib::GzipWriter for writing.
GzipReader should be used by associating an IO, or IO-like, object.
Classes & Modules
Methods
Class
Visibility | Signature |
---|---|
public | wrap (...) |
Instance
Visibility | Signature |
---|---|
public | close () |
public | closed? () |
public | comment () |
public | crc () |
public | finish () |
public | level () |
public | mtime () |
public | orig_name () |
public | os_code () |
public | sync () |
public | sync= (p1) |
public | to_io () |
Class Method Detail
wrap(...)
See Zlib::GzipReader#wrap and Zlib::GzipWriter#wrap.
Instance Method Detail
close()
Closes the GzipFile object. This method calls close method of the associated IO object. Returns the associated IO object.
closed?()
Same as IO.
comment()
Returns comments recorded in the gzip file header, or nil if the comments is not present.
crc()
Returns CRC value of the uncompressed data.
finish()
Closes the GzipFile object. Unlike Zlib::GzipFile#close, this method never calls the close method of the associated IO object. Returns the associated IO object.
level()
Returns compression level.
mtime()
Returns last modification time recorded in the gzip file header.
orig_name()
Returns original filename recorded in the gzip file header, or nil if original filename is not present.
os_code()
Returns OS code number recorded in the gzip file header.
sync()
Same as IO.
sync = flag
Same as IO. If flag is true, the associated IO object must respond to the flush method. While sync mode is true, the compression ratio decreases sharply.
to_io()
Same as IO.