Class TapeArchive::Entry
In: tar.rb
Parent: Object

This class represents a single entry in a tar file.

Methods
blockdev?    chardev?    contents    create    directory?    fifo?    file?    get_input_stream    get_output_stream    link?    name    new    nil?    size    write   
Attributes
header  [R] 
Classes and Modules
Class TapeArchive::Entry::InputStream
Included modules
ParameterValidator
Public Class methods
create( args={} )

Instantiate a brand new entity that is not associated with a specific file.

new( file )

Instantiate a new entity that begins at the current position in the given file.

Public Instance methods
get_input_stream()

Get the input stream for the entity.

get_output_stream()

Get the output stream for the entity.

write( stream )

Write the entity (with its header) to the given stream, returning the actual number of blocks written.

contents()

Get the contents of this entity.

name()

Get the name of this entity.

size()

Get the size of this entity.

nil?()

Is the entity nil?

file?()

Does the entity represent a file?

link?()

Does the entity represent a link?

chardev?()

Does the entity represent a character device?

blockdev?()

Does the entity represent a block device?

directory?()

Does the entity represent a directory?

fifo?()

Does the entity represent a FIFO special file?