rewind

rewind() Instance Public methods Resets the position of the file pointer to the point created the GzipReader object. The associated IO object needs to respond to the seek method.

tell

tell() Instance Public methods Total number of output bytes output so far.

ungetbyte

ungetbyte(p1) Instance Public methods See Zlib::GzipReader documentation for a description.

ungetc

ungetc(p1) Instance Public methods See Zlib::GzipReader documentation for a description.

unused

unused() Instance Public methods Returns the rest of the data which had read for parsing gzip format, or nil if the whole gzip file is not parsed yet.

new

Zlib::GzipWriter.new(io, level = nil, strategy = nil, options = {}) Class Public methods Creates a GzipWriter object associated with io. level and strategy should be the same as the arguments of Zlib::Deflate.new. The GzipWriter object writes gzipped data to io. io must respond to the write method that behaves the same as IO#write. 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.

open

Zlib::GzipWriter.open(filename, level=nil, strategy=nil) { |gz| ... } Class Public methods Opens a file specified by filename for writing gzip compressed data, and returns a GzipWriter object associated with that file. Further details of this method are found in ::new and Zlib::GzipFile.wrap.

<<

<<(p1) Instance Public methods Document-method: << Same as IO.

comment=

comment=(p1) Instance Public methods Specify the comment (str) in the gzip header.

flush

flush(flush=nil) Instance Public methods Flushes all the internal buffers of the GzipWriter object. The meaning of flush is same as in Zlib::Deflate#deflate. Zlib::SYNC_FLUSH is used if flush is omitted. It is no use giving flush Zlib::NO_FLUSH.