Moves the current position for the next read or write operation to
offset. The offset is measured from the beginning of the stream. The
offset may be set beyond the end of the file, if in write mode. Setting
the offset beyond the end of the file does not change the file
length. The file length will change only by writing after the offset
has been set beyond the end of the file.
void readFully(byte b,
Reads up to len bytes of data from this file into an array of
bytes. This method reads repeatedly from the stream until all the bytes
are read. This method blocks until all the bytes are read, the end of
the stream is detected, or an exception is thrown.
b - The buffer into which the data is to be read. It must be long
off - The index in 'b' where to place the first byte read.
len - The number of bytes to read.
EOFException - If the end-of file was reached before
getting all the necessary data.