Class: Gem::Package::TarReader::Entry

Class | Gem::Package::TarReader::Entry
In: | lib/rubygems/package/tar_reader/entry.rb
Parent: | Object

Class for reading entries out of a tar file

### Methods

bytes_read close closed? directory? eof? file? full_name getc new pos read rewind

### Attributes

header | [R] | Header for this tar entry

### Public Class methods

new(header, io)

Creates a new tar entry for `header` that will be read from `io`

### Public Instance methods

bytes_read()

Number of bytes read out of the tar entry

close()

Closes the tar entry

closed?()

Is the tar entry closed?

directory?()

Is this tar entry a directory?

eof?()

Are we at the end of the tar entry?

file?()

Is this tar entry a file?

full_name()

Full name of the tar entry

getc()

Read one byte from the tar entry

pos()

The position in the tar entry

read(len = nil)

Reads `len` bytes from the tar file entry, or the rest of the entry if nil

rewind()

Rewinds to the beginning of the tar file entry

[Validate]