lib/archive/zip.rb
def parse(io)
      socd_pos = find_central_directory(io)
      io.seek(socd_pos)
      # Parse each entry in the central directory.
      loop do
        signature = IOExtensions.read_exactly(io, 4)
        break unless signature == CFH_SIGNATURE
        @entries << Zip::Entry.parse(io)
      end
      # Maybe add support for digital signatures and ZIP64 records... Later

      nil
    end
def parse(io)
      socd_pos = find_central_directory(io)
      io.seek(socd_pos)
      # Parse each entry in the central directory.
      loop do
        signature = IOExtensions.read_exactly(io, 4)
        break unless signature == CFH_SIGNATURE
        @entries << Zip::Entry.parse(io)
      end
      # Maybe add support for digital signatures and ZIP64 records... Later

      nil
    end
<b>NOTE:</b> For now _io_ MUST be seekable.