read

open override fun read(): Int(source)

Reads a single byte from the input stream and increases the count by one

Return

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

Since

0.1.0

See also

Throws

if an I/O error occurs


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

Reads bytes from the input stream and increases the count by the number of read bytes

Return

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

Since

0.1.0

Throws

if an I/O error occurs