Closes the input stream
a Observable with a single element indicating when the operation has completed
Reads a sequence of bytes from this stream into the given buffer.
the destination buffer
an Observable with a single element indicating total number of bytes read into the buffer, or
-1 if there is no more data because the end of the stream has been reached.