StreamMutf8Source

A Mutf8Source that reads its data from an InputStream.

Parameters

stream

The InputStream to read from.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open override fun readLength(): Int

Reads the length of a Modified UTF-8 string from the source of data.

Link copied to clipboard
fun readToAppendable(mutf8Length: Int, destination: Appendable)

Reads a Modified UTF-8 string from the source and Appendable.append each of its characters, in order, to an Appendable, such as a StringBuilder.

Link copied to clipboard
fun readToArray(mutf8Length: Int): CharArray

Reads a Modified UTF-8 string from the source and returns its characters as a CharArray in their original order.

Link copied to clipboard
fun readToString(mutf8Length: Int): String

Reads a Modified UTF-8 string from the source and returns it as a String.