a.read(b) means data is read from a
and stored into b
.
read
method of any class provides the functionality to read from the object.
As per Java Documentation, InputStream :
Reads the next byte of data from the input stream.
Similarly, FileChannel :
Reads a sequence of bytes from this channel into the given buffer.
The convention is uniform and there is no ambiguity.