readString

open fun readString(): String?

See readString(Int).

Return

(see linked method).


open fun readString(length: Int): String?

Read up to length characters from this stream (may read less, even if the end of stream is not reached).

Return

(nullable) String value with at most length characters, or null if there is no remaining text in the stream.

Parameters

length

Maximum number of characters to read (must be greater than zero). Defaults to 4096.