Load

class Load @JvmOverloads constructor(settings: LoadSettings, constructor: BaseConstructor = StandardConstructor(settings))

Common way to load Java instance(s). This class is not thread-safe. Which means that all the methods of the same instance can be called only by one thread. It is better to create an instance for every YAML stream. The instance is stateful. Only one of the 'load' methods may be called, and it may be called only once.

Parameters

settings
  • configuration

constructor
  • custom YAML constructor

Constructors

Link copied to clipboard
constructor(settings: LoadSettings, constructor: BaseConstructor = StandardConstructor(settings))

Functions

Link copied to clipboard

Parse all YAML documents in a stream and produce corresponding Java objects. The documents are parsed only when the iterator is invoked.

Link copied to clipboard
fun loadAllFromReader(yamlReader: Reader): Iterable<Any?>

Parse all YAML documents in a String and produce corresponding Java objects. The documents are parsed only when the iterator is invoked.

Link copied to clipboard

Parse all YAML documents in a String and produce corresponding Java objects. (Because the encoding in known BOM is not respected.) The documents are parsed only when the iterator is invoked.

Link copied to clipboard

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

Link copied to clipboard
fun loadFromReader(yamlReader: Reader): Any?

Parse a YAML document and create a Java instance

Link copied to clipboard

Parse a YAML document and create a Java instance