Decodes the bytes, which is a ByteArray in YAML stream format.
The result is a List where each elemenet in the list corresponds to a YAML document from the stream. Each element will be null, or an instance of int, bool, float, string, List, or Map. The list elements and map values will also be one of these types.
If the obj is or contains a non-supported type, then the converter block is called with the object and an instance of the YamlEncoder class. The converter is not called for map keys, which must still be strings.
The converter block is passed an object to be serialized and an instance of the YamlEncoder class. If it returns a non-null value, that value will be serialized instead of the object that was passed in. Alternatively, the converter block can call the YamlEncoder.encode, YamlEncoder.put-list, or YamlEncoder.put-unquoted methods on the encoder.
If the obj is or contains a non-supported type, then the converter block is called with the object and an instance of the YamlEncoder class. The converter is not called for map keys, which must still be strings.
The converter block is passed an object to be serialized and an instance of the YamlEncoder class. If it returns a non-null value, that value will be serialized instead of the object that was passed in. Alternatively, the converter block can call the YamlEncoder.encode, YamlEncoder.put-list, or YamlEncoder.put-unquoted methods on the encoder.
Decodes the str, which is a string in YAML stream format.
The result is a List where each elemenet in the list corresponds to a YAML document from the stream. Each element will be null, or an instance of int, bool, float, string, List, or Map. The list elements and map values will also be one of these types.
If the obj is or contains a non-supported type, then the converter block is called with the object and an instance of the YamlEncoder class. The converter is not called for map keys, which must still be strings.
The converter block is passed an object to be serialized and an instance of the YamlEncoder class. If it returns a non-null value, that value will be serialized instead of the object that was passed in. Alternatively, the converter block can call the YamlEncoder.encode, YamlEncoder.put-list, or YamlEncoder.put-unquoted methods on the encoder.