skip

fun skip(n: Long): Long

Skips over n characters in the stream:contentReferenceoaicite:25{index=25}. This method may read and discard characters in multiple chunks until the specified number of characters have been skipped or the end of stream is reached. It returns the actual number of characters skipped.

Return

the number of characters actually skipped:contentReferenceoaicite:26{index=26}.

Parameters

n

the number of characters to skip.

Throws

if n is negative:contentReferenceoaicite:27{index=27}.

IOException

if an I/O error occurs.