readUTF8UntilDelimiter

fun Input.readUTF8UntilDelimiter(
    delimiters: String,
    limit: Int = Int.MAX_VALUE
): String

Reads UTF-8 characters until one of the specified delimiters found, limit exceeded or end of stream encountered

Exceptions

BufferLimitExceededException -

Returns a string of characters read before delimiter