Read an exact amount of bytes from a stream.
This function blocks until the bytes is read.
public byte readAll(int length) throws NabtoEOFException
- The amount of bytes to read.
Throws the following exceptions:
Bytes read, less than length bytes can be returned if the stream is reaching end of file.