YamlOutputStreamWriter

Provide an example of implementation of StreamDataWriter interface which does not throw IOException

Parameters

out
  • the output

cs
  • encoding to use to translate String to bytes

Constructors

Link copied to clipboard
constructor(out: OutputStream, cs: Charset)

Functions

Link copied to clipboard
open override fun append(p0: CharSequence): Writer
open override fun append(p0: CharSequence, p1: Int, p2: Int): Writer
open override fun append(p0: Char): Writer
Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun flush()

Flushes this stream by writing any buffered output to the underlying stream.

Link copied to clipboard
open fun getEncoding(): String
Link copied to clipboard

to be implemented

Link copied to clipboard
open override fun write(p0: Int)
open override fun write(p0: CharArray, p1: Int, p2: Int)
open fun write(p0: CharArray)

open override fun write(str: String)

write the whole data

open override fun write(str: String, off: Int, len: Int)

Write part of the data