abstract class Zip::Writers::WriterEntry
- Zip::Writers::WriterEntry
- Reference
- Object
Overview
Abstract base class for classes used to store files and directories
for Writer
instance.
Included Modules
Direct Known Subclasses
Defined in:
Class Method Summary
-
.new(pos : UInt64, path : String, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "", flags : GeneralFlags = GeneralFlags.flags, external : UInt32 = 0_u32, zip64 : Bool = false)
Constructor for abstract
WriterEntry
class.
Instance Method Summary
-
#to_s(dst_io) : UInt64
Write local file entry to IO and return the number of bytes written.
- #write_body(dst_io : IO)
-
#write_central(io : IO, version : Version = Version::DEFAULT) : UInt32
Write central directory data for this
WriterEntry
and return the number of bytes written. - #write_footer(io : IO, crc : UInt32, src_len : UInt64, dst_len : UInt64, zip64 : Bool) : UInt32
-
#zip64? : Bool
Is this a Zip64 entry?
Class Method Detail
Constructor for abstract WriterEntry
class. You cannot
instantiate this class directly; use Writer#add()
,
Writer#add_file()
or `Writer#add_dir() instead.
Instance Method Detail
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
.
Write central directory data for this WriterEntry
and return the
number of bytes written.
You never need to call this method directly; it is called
automatically by Writer#close
.