Class: Omnizip::Formats::Xar::Entry::ExtendedAttribute

Inherits:
Object
  • Object
show all
Includes:
Constants
Defined in:
lib/omnizip/formats/xar/entry.rb

Overview

Extended attributes structure

Constant Summary

Constants included from Constants

Constants::CHECKSUM_ALGORITHMS, Constants::CHECKSUM_NAMES, Constants::CHECKSUM_SIZES, Constants::CKSUM_MD5, Constants::CKSUM_NONE, Constants::CKSUM_OTHER, Constants::CKSUM_SHA1, Constants::COMPRESSION_BZIP2, Constants::COMPRESSION_GZIP, Constants::COMPRESSION_LZMA, Constants::COMPRESSION_MIME_TYPES, Constants::COMPRESSION_NONE, Constants::COMPRESSION_XZ, Constants::DEFAULT_COMPRESSION, Constants::DEFAULT_COMPRESSION_LEVEL, Constants::DEFAULT_FILE_CHECKSUM, Constants::DEFAULT_TOC_CHECKSUM, Constants::HEADER_CKSUM_ALG_OFFSET, Constants::HEADER_MAGIC_OFFSET, Constants::HEADER_SIZE, Constants::HEADER_SIZE_EX, Constants::HEADER_SIZE_OFFSET, Constants::HEADER_TOC_COMPRESSED_OFFSET, Constants::HEADER_TOC_UNCOMPRESSED_OFFSET, Constants::HEADER_VERSION_OFFSET, Constants::MAGIC, Constants::MAGIC_BYTES, Constants::MAX_PATH_LENGTH, Constants::MIME_TYPE_TO_COMPRESSION, Constants::TOC_XML_DECLARATION, Constants::TYPE_BLOCK, Constants::TYPE_CHAR, Constants::TYPE_DIRECTORY, Constants::TYPE_FIFO, Constants::TYPE_FILE, Constants::TYPE_HARDLINK, Constants::TYPE_SOCKET, Constants::TYPE_SYMLINK, Constants::XAR_VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil) ⇒ ExtendedAttribute

Returns a new instance of ExtendedAttribute.



32
33
34
35
36
37
38
# File 'lib/omnizip/formats/xar/entry.rb', line 32

def initialize(name: nil)
  @name = name
  @data_offset = 0
  @data_length = 0
  @data_size = 0
  @data_encoding = COMPRESSION_NONE
end

Instance Attribute Details

#archived_checksumObject

Returns the value of attribute archived_checksum.



28
29
30
# File 'lib/omnizip/formats/xar/entry.rb', line 28

def archived_checksum
  @archived_checksum
end

#data_encodingObject

Returns the value of attribute data_encoding.



28
29
30
# File 'lib/omnizip/formats/xar/entry.rb', line 28

def data_encoding
  @data_encoding
end

#data_lengthObject

Returns the value of attribute data_length.



28
29
30
# File 'lib/omnizip/formats/xar/entry.rb', line 28

def data_length
  @data_length
end

#data_offsetObject

Returns the value of attribute data_offset.



28
29
30
# File 'lib/omnizip/formats/xar/entry.rb', line 28

def data_offset
  @data_offset
end

#data_sizeObject

Returns the value of attribute data_size.



28
29
30
# File 'lib/omnizip/formats/xar/entry.rb', line 28

def data_size
  @data_size
end

#extracted_checksumObject

Returns the value of attribute extracted_checksum.



28
29
30
# File 'lib/omnizip/formats/xar/entry.rb', line 28

def extracted_checksum
  @extracted_checksum
end

#fstypeObject

Returns the value of attribute fstype.



28
29
30
# File 'lib/omnizip/formats/xar/entry.rb', line 28

def fstype
  @fstype
end

#idObject

Returns the value of attribute id.



28
29
30
# File 'lib/omnizip/formats/xar/entry.rb', line 28

def id
  @id
end

#nameObject

Returns the value of attribute name.



28
29
30
# File 'lib/omnizip/formats/xar/entry.rb', line 28

def name
  @name
end