Method: Zip::ZipInputStream#initialize
- Defined in:
- lib/amp/dependencies/zip/zip.rb
#initialize(filename, offset = 0) ⇒ ZipInputStream
Opens the indicated zip file. An exception is thrown if the specified offset in the specified filename is not a local zip entry header.
85 86 87 88 89 90 91 |
# File 'lib/amp/dependencies/zip/zip.rb', line 85 def initialize(filename, offset = 0) super() @archiveIO = File.open(filename, "rb") @archiveIO.seek(offset, IO::SEEK_SET) @decompressor = NullDecompressor.instance @currentEntry = nil end |