Stream.readAllCallback()

DESCRIPTION

Read an exact amount of bytes from a stream without blocking. See Stream.readAll() for possible error codes.

DECLARATION

    public void readAllCallback(int length, NabtoCallback<byte[]> callback) throws NabtoEOFException

PARAMETERS

length:
The amount of bytes to read.
callback:
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.

THROWS EXCEPTIONS

NabtoEOFException:
if end of file is reached.