class Zip::WriterEntry

Overview

Internal class used to store files for Writer instance.

You should not need to instantiate this class directly; it is called automatically by Writer#add and Writer#add_file.

Included Modules

Defined in:

Constant Summary

GENERAL_FLAGS = GeneralFlags.flags(FOOTER, EFS)

Default flags for local and central header.

Class Method Summary

Instance Method Summary

Class Method Detail

def self.new(pos : UInt32, path : String, io : IO, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "") #

Create a new WriterEntry instance.

You should not need to call this method directly; it is called automatically by Writer#add and Writer#add_file.


Instance Method Detail

def to_s(dst_io) : UInt32 #

Write local file entry to IO and return the number of bytes written.

You should not need to call this method directly; it is called automatically by Writer#add and Writer#add_file.


def write_central(io : IO, version : Version = Version::DEFAULT) : UInt32 #

Write central directory data for this WriterEntry and return the number of bytes written.

You should not need to call this method directly; it is called automatically by Writer#close.