class Zip::WriterEntry
- Zip::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
-
GENERAL_FLAGS =
GeneralFlags.flags(FOOTER, EFS)
-
Default flags for local and central header.
Class Method Summary
-
.new(pos : UInt32, path : String, io : IO, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "")
Create a new WriterEntry instance.
Instance Method Summary
-
#to_s(dst_io) : UInt32
Write local file entry to IO and return the number of bytes written.
-
#write_central(io : IO, version : Version = Version::DEFAULT) : UInt32
Write central directory data for this
WriterEntry
and return the number of bytes written.
Class Method Detail
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
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 should not need to call this method directly; it is called
automatically by Writer#close
.