Class TapeArchive::Entry::InputStream
|
In: |
tar.rb
|
Parent: |
::InputStream
|
|
This is the class returned by Entry when an input stream is requested. It
basically maps a subset of a stream and treats it as its own stream.
Instantiate a new Entry::InputStream from the given stream, using the given
start position and length to define the portion of the stream that this one
maps.
Read num bytes from the stream. If num is nil, read to
the end of the stream.
Return the position of the stream.
Set the position of the stream.
Attempt to close the stream. This will throw an exception, since
Entry::InputStream’s should never be closed directly. Instead, close
the stream that this maps to.
Query whether the input stream is closed.
Rewind the stream to the start of the entry.
Query whether the end of the entry has been reached.