class Zip::Writers::FileEntry
- Zip::Writers::FileEntry
- Zip::Writers::WriterEntry
- Reference
- Object
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
-
FLAGS =
GeneralFlags.flags(FOOTER, EFS)
-
Flags for local and central file header.
Class Method Summary
-
.new(pos : UInt64, path : String, io : IO, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "", zip64 : Bool = false)
Create a new FileWriterEntry instance.
Instance methods inherited from class Zip::Writers::WriterEntry
to_s(dst_io) : UInt64
to_s,
write_body(dst_io : IO)
write_body,
write_central(io : IO, version : Version = Version::DEFAULT) : UInt32
write_central,
write_footer(io : IO, crc : UInt32, src_len : UInt64, dst_len : UInt64, zip64 : Bool) : UInt32
write_footer,
zip64? : Bool
zip64?
Class methods inherited from class Zip::Writers::WriterEntry
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)
new
Class Method Detail
def self.new(pos : UInt64, path : String, io : IO, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "", zip64 : Bool = false)
#
Create a new FileWriterEntry instance.
You should not need to call this method directly; it is called
automatically by Writer#add
and Writer#add_file
.