Reads exactly the number of bytes requested from the stream. Throws an exception if it cannot be done. Returns the filled buffer.
Note that, because it can potentially take multiple system calls to complete the read, the read is not guaranteed to be atomic with respect to other reads.
Writes exactly the given buffer and no less. Throws an exception if it cannot be done.
Note that, because it can potentially take multiple system calls to complete the write, the write is not guaranteed to be atomic with respect to other writes.
Reads the rest of the stream.
Set the position (in bytes) of a stream.
Gets the position (in bytes) of a stream.
Skip the specified number of bytes forward or backward.