简体   繁体   中英

Unzipping a file (.gz) in JRuby using Gem

Does anyone know of a gem that is compatible with JRuby 1.6.5 that can extract the files from a .gz zip file?

Thanks!

I use Zlib in my JRuby app. It is a standard Ruby library. http://www.ruby-doc.org/stdlib-1.8.7/libdoc/zlib/rdoc/index.html

In Rails you can also use ActiveSupport::Gzip http://api.rubyonrails.org/classes/ActiveSupport/Gzip.html

Here are examples how to unzip a file: Zlib in Ruby to uncompress .gz

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM