next

fun next(lines: Int): Result<Unit>(source)

Skips the specified number of lines in the html data of the currently-open connection, stopping at the first line that could not be read.

Return

Result.success if every line was skipped, or the failure from the first line that could not be read

Parameters

lines

the number of lines that you want skipped; values <= 0 skip nothing


operator fun next(): Result<String>(source)

Goes to the next line in the html data of the currently-open connection.

Return

the next line, or Result.failure holding an IllegalArgumentException if no connection is open, an EOFException if the stream is exhausted, or an java.io.IOException if the read itself failed