-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use the OO interface? #9
Comments
here is the equivalent OO
There is no public interface to access the gzip header in |
To be honest, the OO equivalent disappoints me. I would have expected somethink like
that means an instance(object) method that has one argument, that is the input file. We could consider this or the question: What is the equivalent of We have used the functional interface of Thx |
Although I have read the documentation of
IO::Compress::Gzip
, it is unclear to me how the following functional callgzip($inputFile => $outputFilehandle, {Strict => 0}) or die "gzip failed: $GzipError\n";
could be translated into an OO approach.
$inputFile
is a filename.$outputFilehandle
is a raw read+write filehandle.Furthermore I would like to know which instance(object) method I could use to access the header information of the zip archive. I have seen
IO::Uncompress::Gunzip::getHeaderInfo()
but I cannot believe that no such method exists for a gzip object itself because such an object should known how it has created the zip archive including its header.The text was updated successfully, but these errors were encountered: