- dst
- the byte array into which the data is read.
- offset
- the offset in dst at which to store the bytes.
- byteCount
- the number of bytes to read.
Type Reason Java.IO.EOFException if the end of the source stream is reached before enough bytes have been read. Java.Lang.IndexOutOfBoundsException if offset or byteCount , or offset + byteCount > dst.length. Java.IO.IOException if a problem occurs while reading from this stream. Java.Lang.NullPointerException if dst is null.
Reads byteCount bytes from this stream and stores them in the byte array dst starting at offset. If byteCount is zero, then this method returns without reading any bytes. Otherwise, this method blocks until byteCount bytes have been read. If insufficient bytes are available, EOFException is thrown. If an I/O error occurs, IOException is thrown. When an exception is thrown, some bytes may have been consumed from the stream and written into the array.