clear

fun clear()

Clear the input stream. All pending data is discarded and the stream position is reset to zero (0).