Parent

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

new(general_purpose_flags = 0) click to toggle source

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

Public Instance Methods

compression_method() click to toggle source

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
compressor(io, &b) click to toggle source

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
decompressor(io, &b) click to toggle source

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
general_purpose_flags() click to toggle source

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
version_needed_to_extract() click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.