Class for reading entries out of a tar file
Methods
- B
- C
- D
- E
- F
- G
- N
- P
- R
Attributes
[R] | header | Header for this tar entry |
Class Public methods
new(header, io)
Link
Creates a new tar entry for header
that will be read from
io
Instance Public methods
bytes_read()
Link
Number of bytes read out of the tar entry
close()
Link
Closes the tar entry
closed?()
Link
Is the tar entry closed?
directory?()
Link
Is this tar entry a directory?
eof?()
Link
Are we at the end of the tar entry?
file?()
Link
Is this tar entry a file?
full_name()
Link
Full name of the tar entry
# File lib/rubygems/package/tar_reader/entry.rb, line 64 def full_name if @header.prefix != "" then File.join @header.prefix, @header.name else @header.name end rescue ArgumentError => e raise unless e.message == 'string contains null byte' raise Gem::Package::TarInvalidError, 'tar is corrupt, name contains null byte' end
getc()
Link
Read one byte from the tar entry
pos()
Link
The position in the tar entry
read(len = nil)
Link
Reads len
bytes from the tar file entry, or the rest of the
entry if nil