Class Archive::Tar::Minitar::Reader::EntryStream
In: lib/archive/tar/minitar.rb
Parent: Object

EntryStreams are pseudo-streams on top of the main data stream.

Methods

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

Public Class methods

Public Instance methods

Closes the entry.

directory()

Alias for directory?

Returns true if the entry represents a directory.

Returns true if the current read pointer is at the end of the EntryStream data.

file()

Alias for file?

Returns true if the entry represents a plain file.

Returns the full and proper name of the entry.

Reads one byte from the entry. Returns nil if there is no more data to read.

Returns the current read pointer in the EntryStream.

Reads len bytes (or all remaining data) from the entry. Returns nil if there is no more data to read.

Sets the current read pointer to the beginning of the EntryStream.

[Validate]