Object
Archive::Zip::Codec::Store is a handle for the store-unstore (no compression) codec.
The numeric identifier assigned to this compresion codec by the ZIP specification.
This method signature is part of the interface contract expected by Archive::Zip::Entry for compression codec objects.
Creates a new instance of this class. general_purpose_flags is not used.
# File lib/archive/zip/codec/store.rb, line 246 def initialize(general_purpose_flags = 0) end
This method signature is part of the interface contract expected by Archive::Zip::Entry for compression codec objects.
Returns an integer used to flag that this compression codec is used for a particular ZIP archive entry.
# File lib/archive/zip/codec/store.rb, line 282 def compression_method ID end
This method signature is part of the interface contract expected by Archive::Zip::Entry for compression codec objects.
A convenience method for creating an Archive::Zip::Codec::Store::Compress object using that class' open method.
# File lib/archive/zip/codec/store.rb, line 254 def compressor(io, &b) Compress.open(io, &b) end
This method signature is part of the interface contract expected by Archive::Zip::Entry for compression codec objects.
A convenience method for creating an Archive::Zip::Codec::Store::Decompress object using that class' open method.
# File lib/archive/zip/codec/store.rb, line 264 def decompressor(io, &b) Decompress.open(io, &b) end
This method signature is part of the interface contract expected by Archive::Zip::Entry for compression codec objects.
Returns 0 since this compression codec does not make use of general purpose flags of ZIP archive entries.
# File lib/archive/zip/codec/store.rb, line 291 def general_purpose_flags 0 end
This method signature is part of the interface contract expected by Archive::Zip::Entry for compression codec objects.
Returns an integer which indicates the version of the official ZIP specification which introduced support for this compression codec.
# File lib/archive/zip/codec/store.rb, line 273 def version_needed_to_extract 0x000a end
Generated with the Darkfish Rdoc Generator 2.