read

open override fun read(): Int(source)

Reads the next byte of data from the input stream.

Return

the next byte of data, or -1 if the end of the stream is reached.

Since

0.1.0

Throws

if an I/O error occurs.


open override fun read(b: ByteArray): Int(source)

Reads some number of bytes from the input stream and stores them into the buffer array.

Return

the total number of bytes read into the buffer, or -1 if

Since

0.1.0

Parameters

b

the buffer into which the data is read.

Throws

if an I/O error occurs.


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

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

Return

the total number of bytes read into the buffer, or -1 if

Since

0.1.0

Parameters

b

the buffer into which the data is read.

off

the start offset in the destination array b

len

the maximum number of bytes read.

Throws

if an I/O error occurs.