flush

flush(flush = Zlib::SYNC_FLUSH) â Stringflush(flush = Zlib::SYNC_FLUSH) { |chunk| ... } â nil Instance Public methods This method is equivalent to deflate('', flush). This method is just provided to improve the readability of your Ruby program. If a block is given chunks of deflate output are yielded to the block until the buffer is flushed. See #deflate for detail on the flush constants NO_FLUSH, SYNC_FLUSH, FULL_FLUSH and FINISH.

initialize_copy

initialize_copy(p1) Instance Public methods Duplicates the deflate stream.

params

params(level, strategy) Instance Public methods Changes the parameters of the deflate stream to allow changes between different types of data that require different types of compression. Any unprocessed data is flushed before changing the params. See ::new for a description of level and strategy.

set_dictionary

set_dictionary(string) Instance Public methods Sets the preset dictionary and returns string. This method is available just only after ::new or Zlib::ZStream#reset method was called. See zlib.h for details. Can raise errors of Z_STREAM_ERROR if a parameter is invalid (such as NULL dictionary) or the stream state is inconsistent, Z_DATA_ERROR if the given dictionary doesn't match the expected one (incorrect adler32 value)

inspect

inspect() Instance Public methods Constructs a String of the GzipFile Error

wrap

Zlib::GzipReader.wrap(io, ...) { |gz| ... }Zlib::GzipWriter.wrap(io, ...) { |gz| ... } Class Public methods Creates a GzipReader or GzipWriter associated with io, passing in any necessary extra options, and executes the block with the newly created object just like File.open. The GzipFile object will be closed automatically after executing the block. If you want to keep the associated IO object open, you may call #finish method in the block.

close

close() Instance Public methods Closes the GzipFile object. This method calls close method of the associated IO object. Returns the associated IO object.

closed?

closed?() Instance Public methods Same as IO#closed?

comment

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

crc

crc() Instance Public methods Returns CRC value of the uncompressed data.