class

ZipTricks::FileReader::ZipEntry

Inherits Reference < Object

Represents a file within the ZIP archive being read.

Instance methods

comment
Source
comment=(comment : String)
Source
compressed_data_offset

Returns the offset at which compressed data starts in the IO

Source
compressed_data_offset=(offset)

Sets the offset at which the compressed data for this file starts in the ZIP

Source
compressed_size
Source
compressed_size=(compressed_size : UInt64)
Source
crc32
Source
crc32=(crc32 : UInt32)
Source
disk_number_start
Source
disk_number_start=(disk_number_start : UInt16)
Source
dos_date
Source
dos_date=(dos_date : UInt16)
Source
dos_time
Source
dos_time=(dos_time : UInt16)
Source
external_attrs
Source
external_attrs=(external_attrs : UInt32)
Source
extractor_from(from_io)

Returns a reader for the actual compressed data of the entry.

reader = entry.extractor_from(source_file) outfile.write(reader.extract(512 * 1024).not_nil!) until reader.eof?

Source
filename
Source
filename=(filename : String)
Source
gp_flags
Source
gp_flags=(gp_flags : UInt16)
Source
internal_attrs
Source
internal_attrs=(internal_attrs : UInt16)
Source
known_offset?

Tells whether the compressed data offset is already known for this entry

Source
local_file_header_offset
Source
local_file_header_offset=(local_file_header_offset : UInt64)
Source
made_by
Source
made_by=(made_by : UInt16)
Source
storage_mode
Source
storage_mode=(storage_mode : UInt16)
Source
uncompressed_size
Source
uncompressed_size=(uncompressed_size : UInt64)
Source
uses_data_descriptor?

Tells whether the entry uses a data descriptor (bit 3 in GP flags)

Source
version_needed_to_extract
Source
version_needed_to_extract=(version_needed_to_extract : UInt16)
Source