loadOne

expect fun loadOne(string: String): Any?(source)

Parse a YAML document and create an instance of an object.

Return

parsed instance

Parameters

string

YAML data to load from

Throws

if the YAML is not valid

actual fun loadOne(string: String): Any?(source)
fun loadOne(inputStream: InputStream): Any?(source)

Parse the only YAML document in a stream and produce the corresponding object.

Return

parsed object instance

Parameters

inputStream

data to load from (BOM is respected to detect encoding and removed from the data)


fun loadOne(reader: Reader): Any?(source)

Parse a YAML document and create a object instance.

Return

parsed object instance

Parameters

reader

data to load from


actual fun loadOne(string: String): Any?(source)
actual fun loadOne(string: String): Any?(source)