public class YAMLFactoryBuilder extends com.fasterxml.jackson.core.TSFBuilder<YAMLFactory,YAMLFactoryBuilder>
TSFBuilder
implementation for constructing YAMLFactory
instances.Modifier and Type | Field and Description |
---|---|
protected org.yaml.snakeyaml.DumperOptions |
_dumperOptions
Configuration for underlying generator to follow, if specified;
left as
null for backwards compatibility (which means
the dumper options are derived based on YAMLGenerator.Feature s). |
protected int |
_formatGeneratorFeatures
Set of
YAMLGenerator.Feature s enabled, as bitmask. |
protected org.yaml.snakeyaml.LoaderOptions |
_loaderOptions
Configuration for underlying parser to follow, if specified;
left as
null for backwards compatibility (which means
whatever default settings SnakeYAML deems best). |
protected StringQuotingChecker |
_quotingChecker
Helper object used to determine whether property names, String values
must be quoted or not.
|
protected org.yaml.snakeyaml.DumperOptions.Version |
_version
YAML version for underlying generator to follow, if specified;
left as
null for backwards compatibility (which means
whatever default settings SnakeYAML deems best). |
Modifier | Constructor and Description |
---|---|
protected |
YAMLFactoryBuilder() |
|
YAMLFactoryBuilder(YAMLFactory base) |
Modifier and Type | Method and Description |
---|---|
YAMLFactory |
build() |
YAMLFactoryBuilder |
configure(YAMLGenerator.Feature f,
boolean state) |
YAMLFactoryBuilder |
disable(YAMLGenerator.Feature f) |
YAMLFactoryBuilder |
disable(YAMLGenerator.Feature first,
YAMLGenerator.Feature... other) |
org.yaml.snakeyaml.DumperOptions |
dumperOptions()
Configuration for underlying generator to follow, if specified;
left as
null for backwards compatibility (which means
the dumper options are derived based on YAMLGenerator.Feature s). |
YAMLFactoryBuilder |
dumperOptions(org.yaml.snakeyaml.DumperOptions dumperOptions)
Configuration for underlying generator to follow, if specified;
left as
null for backwards compatibility (which means
the dumper options are derived based on YAMLGenerator.Feature s). |
YAMLFactoryBuilder |
enable(YAMLGenerator.Feature f) |
YAMLFactoryBuilder |
enable(YAMLGenerator.Feature first,
YAMLGenerator.Feature... other) |
int |
formatGeneratorFeaturesMask() |
org.yaml.snakeyaml.LoaderOptions |
loaderOptions()
Configuration for underlying parser to follow, if specified;
left as
null for backwards compatibility (which means
whatever default settings SnakeYAML deems best). |
YAMLFactoryBuilder |
loaderOptions(org.yaml.snakeyaml.LoaderOptions loaderOptions)
Configuration for underlying parser to follow, if specified;
left as
null for backwards compatibility (which means
whatever default settings SnakeYAML deems best). |
StringQuotingChecker |
stringQuotingChecker() |
YAMLFactoryBuilder |
stringQuotingChecker(StringQuotingChecker sqc)
Method for specifying either custom
StringQuotingChecker
to use instead of default one, or, that default one (see
StringQuotingChecker.Default.instance() ) is to be used
(when passing null |
org.yaml.snakeyaml.DumperOptions.Version |
yamlVersionToWrite() |
YAMLFactoryBuilder |
yamlVersionToWrite(org.yaml.snakeyaml.DumperOptions.Version v)
Method for specifying YAML version for generator to use (to produce
compliant output); if
null passed, will let SnakeYAML
use its default settings. |
_legacyDisable, _legacyDisable, _legacyEnable, _legacyEnable, _this, configure, configure, configure, configure, configure, disable, disable, disable, disable, disable, disable, disable, disable, disable, enable, enable, enable, enable, enable, enable, enable, enable, enable, factoryFeaturesMask, inputDecorator, inputDecorator, outputDecorator, outputDecorator, streamReadFeatures, streamWriteFeatures
protected int _formatGeneratorFeatures
YAMLGenerator.Feature
s enabled, as bitmask.protected StringQuotingChecker _quotingChecker
protected org.yaml.snakeyaml.DumperOptions.Version _version
null
for backwards compatibility (which means
whatever default settings SnakeYAML
deems best).
Ignored if you provide your own DumperOptions
.
protected org.yaml.snakeyaml.LoaderOptions _loaderOptions
null
for backwards compatibility (which means
whatever default settings SnakeYAML
deems best).
If you need to support parsing YAML files that are larger than 3Mb, it is recommended that you provide a LoaderOptions instance where you set the Codepoint Limit to a larger value than its 3Mb default.
protected org.yaml.snakeyaml.DumperOptions _dumperOptions
null
for backwards compatibility (which means
the dumper options are derived based on YAMLGenerator.Feature
s).
These YAMLGenerator.Feature
s are ignored if you provide your own DumperOptions:
YAMLGenerator.Feature.ALLOW_LONG_KEYS
YAMLGenerator.Feature.CANONICAL_OUTPUT
YAMLGenerator.Feature.INDENT_ARRAYS
YAMLGenerator.Feature.INDENT_ARRAYS_WITH_INDICATOR
YAMLGenerator.Feature.SPLIT_LINES
YAMLGenerator.Feature.USE_PLATFORM_LINE_BREAKS
protected YAMLFactoryBuilder()
public YAMLFactoryBuilder(YAMLFactory base)
public YAMLFactoryBuilder enable(YAMLGenerator.Feature f)
public YAMLFactoryBuilder enable(YAMLGenerator.Feature first, YAMLGenerator.Feature... other)
public YAMLFactoryBuilder disable(YAMLGenerator.Feature f)
public YAMLFactoryBuilder disable(YAMLGenerator.Feature first, YAMLGenerator.Feature... other)
public YAMLFactoryBuilder configure(YAMLGenerator.Feature f, boolean state)
public YAMLFactoryBuilder stringQuotingChecker(StringQuotingChecker sqc)
StringQuotingChecker
to use instead of default one, or, that default one (see
StringQuotingChecker.Default.instance()
) is to be used
(when passing null
sqc
- Checker to use (if non-null), or null
to use the
default one (see StringQuotingChecker.Default.instance()
)public YAMLFactoryBuilder yamlVersionToWrite(org.yaml.snakeyaml.DumperOptions.Version v)
null
passed, will let SnakeYAML
use its default settings.v
- YAML specification version to use for output, if not-null;
null
for default handlingpublic YAMLFactoryBuilder loaderOptions(org.yaml.snakeyaml.LoaderOptions loaderOptions)
null
for backwards compatibility (which means
whatever default settings SnakeYAML
deems best).
If you need to support parsing YAML files that are larger than 3Mb, it is recommended that you provide a LoaderOptions instance where you set the Codepoint Limit to a larger value than its 3Mb default.
loaderOptions
- the SnakeYAML
configuration to use when parsing YAMLpublic YAMLFactoryBuilder dumperOptions(org.yaml.snakeyaml.DumperOptions dumperOptions)
null
for backwards compatibility (which means
the dumper options are derived based on YAMLGenerator.Feature
s).
These YAMLGenerator.Feature
s are ignored if you provide your own DumperOptions:
YAMLGenerator.Feature.ALLOW_LONG_KEYS
YAMLGenerator.Feature.CANONICAL_OUTPUT
YAMLGenerator.Feature.INDENT_ARRAYS
YAMLGenerator.Feature.INDENT_ARRAYS_WITH_INDICATOR
YAMLGenerator.Feature.SPLIT_LINES
YAMLGenerator.Feature.USE_PLATFORM_LINE_BREAKS
dumperOptions
- the SnakeYAML
configuration to use when generating YAMLpublic int formatGeneratorFeaturesMask()
public org.yaml.snakeyaml.DumperOptions.Version yamlVersionToWrite()
public StringQuotingChecker stringQuotingChecker()
public org.yaml.snakeyaml.LoaderOptions loaderOptions()
null
for backwards compatibility (which means
whatever default settings SnakeYAML
deems best).
If you need to support parsing YAML files that are larger than 3Mb, it is recommended that you provide a LoaderOptions instance where you set the Codepoint Limit to a larger value than its 3Mb default.
SnakeYAML
configuration to use when parsing YAMLpublic org.yaml.snakeyaml.DumperOptions dumperOptions()
null
for backwards compatibility (which means
the dumper options are derived based on YAMLGenerator.Feature
s).
These YAMLGenerator.Feature
s are ignored if you provide your own DumperOptions:
YAMLGenerator.Feature.ALLOW_LONG_KEYS
YAMLGenerator.Feature.CANONICAL_OUTPUT
YAMLGenerator.Feature.INDENT_ARRAYS
YAMLGenerator.Feature.INDENT_ARRAYS_WITH_INDICATOR
YAMLGenerator.Feature.SPLIT_LINES
YAMLGenerator.Feature.USE_PLATFORM_LINE_BREAKS
SnakeYAML
configuration to use when generating YAMLpublic YAMLFactory build()
build
in class com.fasterxml.jackson.core.TSFBuilder<YAMLFactory,YAMLFactoryBuilder>
Copyright © 2022 FasterXML. All rights reserved.