How about the read(byte[] b)
method? From the Java docs..
Reads up to b.length bytes of data from this file into an array of bytes. This method blocks until at least one byte of input is available.
Pergunta
Is there a way to read a certain number of bytes from a RandomAccessFile in Java?
Solução
How about the read(byte[] b)
method? From the Java docs..
Reads up to b.length bytes of data from this file into an array of bytes. This method blocks until at least one byte of input is available.