Stream.readSome()
DESCRIPTION
Read some bytes from a stream.
This function blocks until stream is read or the stream is closed or end of file. If end of file is reached or the stream is aborted an exception is thrown.
DECLARATION
public byte[] readSome() throws NabtoEOFException
THROWS EXCEPTIONS
NabtoRuntimeException:
- With error code
STOPPED
if the stream was stopped. NabtoRuntimeException:
- With error code
OPERATION_IN_PROGRESS
if another read is in progress. NabtoEOFException:
- if eof is reached
RETURNS
bytes read.