The documentation for read() in the Reader trait specifies: Read bytes, up to the length of buf and place them in buf. Returns the number of bytes read. The number of bytes read may be less than the ...