readNBytes

open override fun readNBytes(n: Int): ByteArray(source)

Reads bytes from the BufferedInputStream into the given array

Return

the number of bytes read or -1 if the end of the stream is reached

Since

0.1.1

Parameters

n

the number of bytes to read


open override fun readNBytes(b: ByteArray, off: Int, len: Int): Int(source)

Reads up to len bytes of data from the input stream into an array of bytes.

Since

0.1.1

Throws

if an I/O error occurs.

if this method is not supported.