read

open override fun read(): Int(source)

Reads a single byte from the BufferedInputStream

Return

the byte or -1 if the end of the stream is reached

Since

0.1.0


open override fun read(b: ByteArray, off: Int, len: Int): Int(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.0

Parameters

b

the array to read into

off

the offset to start reading at

len

the maximum number of bytes to read


open override fun read(b: ByteArray): Int(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

b

the array to read into