finish

finish() Instance Public methods Closes the GzipFile object. Unlike #close, this method never calls the close method of the associated IO object. Returns the associated IO object.

level

level() Instance Public methods Returns compression level.

mtime

mtime() Instance Public methods Returns last modification time recorded in the gzip file header.

orig_name

orig_name() Instance Public methods Returns original filename recorded in the gzip file header, or nil if original filename is not present.

os_code

os_code() Instance Public methods Returns OS code number recorded in the gzip file header.

sync

sync() Instance Public methods Same as IO#sync

sync=

sync = flag Instance Public methods 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

to_io() Instance Public methods Same as IO.

new

Zlib::GzipReader.new(io, options = {}) Class Public methods Creates a GzipReader object associated with io. The GzipReader object reads gzipped data from io, and parses/decompresses it. The io must have a read method that behaves same as the IO#read. The options hash may be used to set the encoding of the data. :external_encoding, :internal_encoding and :encoding may be set as in IO.new. If the gzip file header is incorrect, raises an Zlib::GzipFile::Error exception.

open

Zlib::GzipReader.open(filename) {|gz| ... } Class Public methods Opens a file specified by filename as a gzipped file, and returns a GzipReader object associated with that file. Further details of this method are in ::new and ZLib::GzipFile.wrap.