class Utf8Writer
source · line 34public
public class Utf8Writer public constructor(private val sink: ByteSink) : TextWriter
- Supertype
TextWriter
Adapts a borrowed byte sink to TextWriter without assuming close responsibility.
function flush
source · line 42public
public fun flush(): Unit
Flushes the borrowed byte sink.
function write
source · line 38public
public override fun write(text: String): Unit
- Overrides
write
Writes the complete UTF-8 encoding to the borrowed sink.
parameter text
source · line 38public
text: String
constructor constructor
source · line 34public
constructor(private val sink: ByteSink)
parameter sink
source · line 34public
private val sink: ByteSink