public class DumperSettings extends Object
Settings introduced by BoostedYAML follow builder design pattern, e.g. you may build your own settings using
DumperSettings.builder() //configure// .build()
| Modifier and Type | Class and Description |
|---|---|
static class |
DumperSettings.Builder
Builder for dumper settings; wrapper for SnakeYAML Engine's
DumpSettingsBuilder class which is more
detailed, provides more options and possibilities, hides options which should not be configured. |
static class |
DumperSettings.Encoding
Represents supported encoding.
|
| Modifier and Type | Field and Description |
|---|---|
static DumperSettings |
DEFAULT
Default dumper settings.
|
| Modifier and Type | Method and Description |
|---|---|
org.snakeyaml.engine.v2.api.DumpSettings |
buildEngineSettings()
Builds the SnakeYAML Engine settings.
|
static DumperSettings.Builder |
builder()
Returns a new builder.
|
static DumperSettings.Builder |
builder(DumperSettings settings)
Returns a new builder with the same configuration as the given settings.
|
static DumperSettings.Builder |
builder(org.snakeyaml.engine.v2.api.DumpSettingsBuilder builder)
Creates and returns a new builder from the given, already created SnakeYAML Engine settings builder.
|
public static final DumperSettings DEFAULT
public org.snakeyaml.engine.v2.api.DumpSettings buildEngineSettings()
public static DumperSettings.Builder builder()
public static DumperSettings.Builder builder(org.snakeyaml.engine.v2.api.DumpSettingsBuilder builder)
Note that the given builder is not cloned, so it is in the caller's best interest to never change it's settings from now on.
Please note that DumperSettings.Builder.setAnchorGenerator(Supplier) still has to be called (if you want to alter the
default), as they are not part of the Engine's settings.
builder - the underlying builderpublic static DumperSettings.Builder builder(DumperSettings settings)
settings - preset settingsCopyright © 2022. All rights reserved.