Class: Omnizip::Formats::Xar::Entry::ExtendedAttribute
- Inherits:
-
Object
- Object
- Omnizip::Formats::Xar::Entry::ExtendedAttribute
- 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
-
#archived_checksum ⇒ Object
Returns the value of attribute archived_checksum.
-
#data_encoding ⇒ Object
Returns the value of attribute data_encoding.
-
#data_length ⇒ Object
Returns the value of attribute data_length.
-
#data_offset ⇒ Object
Returns the value of attribute data_offset.
-
#data_size ⇒ Object
Returns the value of attribute data_size.
-
#extracted_checksum ⇒ Object
Returns the value of attribute extracted_checksum.
-
#fstype ⇒ Object
Returns the value of attribute fstype.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name: nil) ⇒ ExtendedAttribute
constructor
A new instance of ExtendedAttribute.
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_checksum ⇒ Object
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_encoding ⇒ Object
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_length ⇒ Object
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_offset ⇒ Object
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_size ⇒ Object
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_checksum ⇒ Object
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 |
#fstype ⇒ Object
Returns the value of attribute fstype.
28 29 30 |
# File 'lib/omnizip/formats/xar/entry.rb', line 28 def fstype @fstype end |
#id ⇒ Object
Returns the value of attribute id.
28 29 30 |
# File 'lib/omnizip/formats/xar/entry.rb', line 28 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
28 29 30 |
# File 'lib/omnizip/formats/xar/entry.rb', line 28 def name @name end |