Viewing File: /opt/cpanel/ea-ruby24/root/usr/share/ri/system/Zlib/GzipReader/cdesc-GzipReader.ri

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"N<tt>Zlib::GzipFile::NoFooter</tt>, <tt>Zlib::GzipFile::CRCError</tt>, or ;TI"4<tt>Zlib::GzipFile::LengthError</tt> exception.;T@o;;;;[o;;0;[o;	;[I"LWhen an reading request is received beyond the end of file (the end of ;TI"<compressed data). That is, when Zlib::GzipReader#read, ;TI"JZlib::GzipReader#gets, or some other methods for reading returns nil.;To;;0;[o;	;[I"MWhen Zlib::GzipFile#close method is called after the object reaches the ;TI"end of file.;To;;0;[o;	;[I"LWhen Zlib::GzipReader#unused method is called after the object reaches ;TI"the end of file.;T@o;	;[I"CThe rest of the methods are adequately described in their own ;TI"documentation.;T:
@fileI"ext/zlib/zlib.c;T:0@omit_headings_from_table_of_contents_below0;0;0[[[[I"Enumerable;To;;[;@~;0I"ext/zlib/zlib.c;T[[I"
class;T[[:public[[I"new;T@†[I"	open;T@†[:protected[[:private[[I"
instance;T[[;[[I"
bytes;T@†[I"	each;T@†[I"each_byte;T@†[I"each_char;T@†[I"each_line;T@†[I"eof;T@†[I"	eof?;T@†[I"external_encoding;T@†[I"getbyte;T@†[I"	getc;T@†[I"	gets;T@†[I"lineno;T@†[I"lineno=;T@†[I"
lines;T@†[I"pos;T@†[I"	read;T@†[I"
readbyte;T@†[I"
readchar;T@†[I"
readline;T@†[I"readlines;T@†[I"readpartial;T@†[I"rewind;T@†[I"	tell;T@†[I"ungetbyte;T@†[I"ungetc;T@†[I"unused;T@†[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[@~I"	Zlib;TcRDoc::NormalModule
Back to Directory File Manager