From 25199ab4c29057d7c0a73812fc8f2ac3605c1d86 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Wed, 10 Aug 2016 21:04:41 -0400 Subject: add documentation --- Zip/WriterEntry.html | 319 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 319 insertions(+) create mode 100644 Zip/WriterEntry.html (limited to 'Zip/WriterEntry.html') diff --git a/Zip/WriterEntry.html b/Zip/WriterEntry.html new file mode 100644 index 0000000..843b04b --- /dev/null +++ b/Zip/WriterEntry.html @@ -0,0 +1,319 @@ + + + + + + + + Zip::WriterEntry - github.com/pablotron/zip-crystal + + + +
+ + + + + + +
+ +
+

+ + 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.

+ +
+
+ +
+
+ + + + + +
+ + + -- cgit v1.2.3