readUTF8LineTo
Reads a line of UTF-8 characters to the specified out buffer. It recognizes CR, LF and CRLF as a line delimiter.
Return
true
if a new line separator was found or max bytes appended. false
if no new line separator and no bytes read.
Parameters
the buffer to write the line to
the maximum number of characters to read
Throws
if max is reached before encountering a newline or end of input
Reads a line of UTF-8 characters to the specified out buffer. It recognizes the specified line ending as a line delimiter and throws an exception if an unexpected line delimiter is found. By default, all line endings (CR, LF and CRLF) are allowed as a line delimiter.
Return
true
if a new line separator was found or max bytes appended. false
if no new line separator and no bytes read.
Parameters
the buffer to write the line to
the maximum number of characters to read
the allowed line endings
Throws
if max is reached before encountering a newline or end of input