class ZipTricks::FileReader::ZipEntry

Overview

Represents a file within the ZIP archive being read.

Defined in:

file_reader.cr

Instance Method Summary

Instance Method Detail

def comment : String #

[View source]
def comment=(comment : String) #

[View source]
def compressed_data_offset : UInt64 #

Returns the offset at which compressed data starts in the IO


[View source]
def compressed_data_offset=(offset) #

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


[View source]
def compressed_size : UInt64 #

[View source]
def compressed_size=(compressed_size : UInt64) #

[View source]
def crc32 : UInt32 #

[View source]
def crc32=(crc32 : UInt32) #

[View source]
def disk_number_start : UInt16 #

[View source]
def disk_number_start=(disk_number_start : UInt16) #

[View source]
def dos_date : UInt16 #

[View source]
def dos_date=(dos_date : UInt16) #

[View source]
def dos_time : UInt16 #

[View source]
def dos_time=(dos_time : UInt16) #

[View source]
def external_attrs : UInt32 #

[View source]
def external_attrs=(external_attrs : UInt32) #

[View source]
def 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?


[View source]
def filename : String #

[View source]
def filename=(filename : String) #

[View source]
def gp_flags : UInt16 #

[View source]
def gp_flags=(gp_flags : UInt16) #

[View source]
def internal_attrs : UInt16 #

[View source]
def internal_attrs=(internal_attrs : UInt16) #

[View source]
def known_offset? : Bool #

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


[View source]
def local_file_header_offset : UInt64 #

[View source]
def local_file_header_offset=(local_file_header_offset : UInt64) #

[View source]
def made_by : UInt16 #

[View source]
def made_by=(made_by : UInt16) #

[View source]
def storage_mode : UInt16 #

[View source]
def storage_mode=(storage_mode : UInt16) #

[View source]
def uncompressed_size : UInt64 #

[View source]
def uncompressed_size=(uncompressed_size : UInt64) #

[View source]
def uses_data_descriptor? : Bool #

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


[View source]
def version_needed_to_extract : UInt16 #

[View source]
def version_needed_to_extract=(version_needed_to_extract : UInt16) #

[View source]