U:RDoc::NormalClass[iI"GzipReader:ETI"Zlib::GzipReader;TI"Zlib::GzipFile;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"RZlib::GzipReader is the class for reading a gzipped file. GzipReader should ;TI"+be used as an IO, or -IO-like, object.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;[I",Zlib::GzipReader.open('hoge.gz') {|gz| ;TI" print gz.read ;TI"} ;TI" ;TI"!File.open('hoge.gz') do |f| ;TI"$ gz = Zlib::GzipReader.new(f) ;TI" print gz.read ;TI" gz.close ;TI" end ;T: @format0S:RDoc::Markup::Heading: leveli: textI"Method Catalogue;T@o; ;[I"PThe following methods in Zlib::GzipReader are just like their counterparts ;TI"Pin IO, but they raise Zlib::Error or Zlib::GzipFile::Error exception if an ;TI"&error was found in the gzip file.;To:RDoc::Markup::List: @type: BULLET: @items[o:RDoc::Markup::ListItem: @label0;[o; ;[I" #each;To;;0;[o; ;[I"#each_line;To;;0;[o; ;[I"#each_byte;To;;0;[o; ;[I" #gets;To;;0;[o; ;[I" #getc;To;;0;[o; ;[I" #lineno;To;;0;[o; ;[I" #lineno=;To;;0;[o; ;[I" #read;To;;0;[o; ;[I"#readchar;To;;0;[o; ;[I"#readline;To;;0;[o; ;[I"#readlines;To;;0;[o; ;[I" #ungetc;T@o; ;[ I"PBe careful of the footer of the gzip file. A gzip file has the checksum of ;TI"Ppre-compressed data in its footer. GzipReader checks all uncompressed data ;TI"Kagainst that checksum at the following cases, and if it fails, raises ;TI"NZlib::GzipFile::NoFooter, Zlib::GzipFile::CRCError, or ;TI"4Zlib::GzipFile::LengthError exception.;T@o;;;;[o;;0;[o; ;[I"LWhen an reading request is received beyond the end of file (the end of ;TI"