Class Gem::Package::TarHeader
In: lib/rubygems/package/tar_header.rb
Parent: Object

A header for a tar file

Methods

empty?   from   new   update_checksum  

Constants

FIELDS = [ :checksum, :devmajor, :devminor, :gid, :gname, :linkname, :magic, :mode, :mtime, :name, :prefix, :size, :typeflag, :uid, :uname, :version, ]   Fields in the tar header
PACK_FORMAT = 'a100' + # name 'a8' + # mode 'a8' + # uid 'a8' + # gid 'a12' + # size 'a12' + # mtime 'a7a' + # chksum 'a' + # typeflag 'a100' + # linkname 'a6' + # magic 'a2' + # version 'a32' + # uname 'a32' + # gname 'a8' + # devmajor 'a8' + # devminor 'a155'   Pack format for a tar header
UNPACK_FORMAT = 'A100' + # name 'A8' + # mode 'A8' + # uid 'A8' + # gid 'A12' + # size 'A12' + # mtime 'A8' + # checksum 'A' + # typeflag 'A100' + # linkname 'A6' + # magic 'A2' + # version 'A32' + # uname 'A32' + # gname 'A8' + # devmajor 'A8' + # devminor 'A155'   Unpack format for a tar header

Public Class methods

Creates a tar header from IO stream

Creates a new TarHeader using vals

Public Instance methods

Is the tar entry empty?

Updates the TarHeader‘s checksum

[Validate]