Class YamlWritingMechanism
java.lang.Object
org.keycloak.models.map.storage.file.yaml.YamlWritingMechanism
- All Implemented Interfaces:
Closeable
,AutoCloseable
,WritingMechanism
Mechanism which produces
Event
s for SnakeYaml v2 Emitter
.- Author:
- vramik
-
Constructor Summary
ConstructorDescriptionYamlWritingMechanism
(Consumer<org.snakeyaml.engine.v2.events.Event> consumer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
writeMapping
Description copied from interface:WritingMechanism
Writes a mapping, items of which are written using this mechanism in thetask
.- Specified by:
writeMapping
in interfaceWritingMechanism
- Returns:
-
writeSequence
Description copied from interface:WritingMechanism
Writes a sequence, items of which are written using this mechanism in thetask
.- Specified by:
writeSequence
in interfaceWritingMechanism
- Returns:
-
writePair
Description copied from interface:WritingMechanism
Writes a mapping key/value pair, items of which are written using this mechanism in thetask
.- Specified by:
writePair
in interfaceWritingMechanism
- Returns:
-
writeObject
Description copied from interface:WritingMechanism
Writes a value of a primitive type (null
, boolean, number, String).- Specified by:
writeObject
in interfaceWritingMechanism
- Returns:
-