Read an exact amount of bytes from a stream without blocking. See Stream.readAll() for possible error codes.
public void readAllCallback(int length, NabtoCallback<byte> callback) throws NabtoEOFException
- The amount of bytes to read.
- The callback that will be run when the bytes are ready. The callback status will have an EOF status if end of file is reached.
- if end of file is reached.