skip

open fun skip(byteCount: Long): Long

Skips byteCount bytes in this stream. Subsequent calls to read will not return these bytes unless reset is used.

Return

the number of bytes actually skipped.

Parameters

byteCount

the number of bytes to skip. This method does nothing and returns 0 if byteCount is less than zero.

Throws

if this stream is closed or another IOException occurs.