Stream.readAll()

DESCRIPTION

Read an exact amount of bytes from a stream.

This function blocks until the bytes is read.

DECLARATION

    public byte[] readAll(int length) throws NabtoEOFException

PARAMETERS

length:
The amount of bytes to read.

ERRORS

Throws the following exceptions:

None.

RETURN VALUES

Bytes read, less than length bytes can be returned if the stream is reaching end of file.

EXAMPLES

None.