These are chat archives for atomix/atomix

7th
Apr 2018
Johno Crawford
@johnou
Apr 07 2018 09:39
(using readfully)
 * @return     the total number of bytes read into the buffer, or
 *             {@code -1} if there is no more data because the end of
 *             the file has been reached.
it'
read might not read the entire amount of given bytes into the buffer
Johno Crawford
@johnou
Apr 07 2018 12:29

Although RandomAccessFile is not a subclass of InputStream, this method behaves in exactly the same way as the InputStream.read() method of InputStream.

https://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html#read(byte[],%20int,%20int)

An attempt is made to read as many as len bytes, but a smaller number may be read.