class Archive::Zip::Codec::Store
Archive::Zip::Codec::Store
is a handle for the store-unstore (no compression) codec.
Constants
- ID
The numeric identifier assigned to this compresion codec by the ZIP specification.
Public Class Methods
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 247 def initialize(general_purpose_flags = 0) end
Public Instance Methods
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 283 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 255 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 265 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 292 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 274 def version_needed_to_extract 0x000a end