readBytes
Reads exactly len bytes into the given buffer. The buffer must have enough remaining limit.
If there are fewer than len bytes in the input, EOFException is thrown.
Reads a specified number of bytes into an array at the specified offset.
Parameters
b
the array to read bytes into
offset
the offset in the array to start storing bytes
len
the number of bytes to read
See also
Reads a specified number of bytes starting at a given position into an array at the specified offset.