Class YamlWritingMechanism
java.lang.Object
org.keycloak.models.map.storage.file.yaml.YamlWritingMechanism
- All Implemented Interfaces:
Closeable,AutoCloseable,WritingMechanism
Mechanism which produces
Events for SnakeYaml v2 Emitter.- Author:
- vramik
-
Constructor Summary
ConstructorsConstructorDescriptionYamlWritingMechanism(Consumer<org.snakeyaml.engine.v2.events.Event> consumer) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()writeMapping(Runnable task) Writes a mapping, items of which are written using this mechanism in thetask.writeObject(Object value) Writes a value of a primitive type (null, boolean, number, String).Writes a mapping key/value pair, items of which are written using this mechanism in thetask.writeSequence(Runnable task) Writes a sequence, items of which are written using this mechanism in thetask.
-
Constructor Details
-
YamlWritingMechanism
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
writeMapping
Description copied from interface:WritingMechanismWrites a mapping, items of which are written using this mechanism in thetask.- Specified by:
writeMappingin interfaceWritingMechanism- Returns:
-
writeSequence
Description copied from interface:WritingMechanismWrites a sequence, items of which are written using this mechanism in thetask.- Specified by:
writeSequencein interfaceWritingMechanism- Returns:
-
writePair
Description copied from interface:WritingMechanismWrites a mapping key/value pair, items of which are written using this mechanism in thetask.- Specified by:
writePairin interfaceWritingMechanism- Returns:
-
writeObject
Description copied from interface:WritingMechanismWrites a value of a primitive type (null, boolean, number, String).- Specified by:
writeObjectin interfaceWritingMechanism- Returns:
-