Decompression of Files

Hi, I’d like to read an SVG file compressed into SVGZ format. In Java I
think I could use GZIPInputStream. Is there anything similar in Ruby?

Thanks.

Craig McDonnell wrote:

Hi, I’d like to read an SVG file compressed into SVGZ format. In Java I
think I could use GZIPInputStream. Is there anything similar in Ruby?

Yes. The Zlib module that comes with Ruby should be able to handle what
you want. See:

http://www.ruby-doc.org/stdlib/libdoc/zlib/rdoc/index.html


Philip R.
http://tzinfo.rubyforge.org/ – DST-aware timezone library for Ruby