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.Features). |
protected int |
_formatGeneratorFeatures
Set of
YAMLGenerator.Features 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.Features). |
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.Features). |
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, streamWriteFeaturesprotected int _formatGeneratorFeatures
YAMLGenerator.Features 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.Features).
These YAMLGenerator.Features are ignored if you provide your own DumperOptions:
YAMLGenerator.Feature.ALLOW_LONG_KEYSYAMLGenerator.Feature.CANONICAL_OUTPUTYAMLGenerator.Feature.INDENT_ARRAYSYAMLGenerator.Feature.INDENT_ARRAYS_WITH_INDICATORYAMLGenerator.Feature.SPLIT_LINESYAMLGenerator.Feature.USE_PLATFORM_LINE_BREAKSprotected 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 nullsqc - 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.Features).
These YAMLGenerator.Features are ignored if you provide your own DumperOptions:
YAMLGenerator.Feature.ALLOW_LONG_KEYSYAMLGenerator.Feature.CANONICAL_OUTPUTYAMLGenerator.Feature.INDENT_ARRAYSYAMLGenerator.Feature.INDENT_ARRAYS_WITH_INDICATORYAMLGenerator.Feature.SPLIT_LINESYAMLGenerator.Feature.USE_PLATFORM_LINE_BREAKSdumperOptions - 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.Features).
These YAMLGenerator.Features are ignored if you provide your own DumperOptions:
YAMLGenerator.Feature.ALLOW_LONG_KEYSYAMLGenerator.Feature.CANONICAL_OUTPUTYAMLGenerator.Feature.INDENT_ARRAYSYAMLGenerator.Feature.INDENT_ARRAYS_WITH_INDICATORYAMLGenerator.Feature.SPLIT_LINESYAMLGenerator.Feature.USE_PLATFORM_LINE_BREAKSSnakeYAML configuration to use when generating YAMLpublic YAMLFactory build()
build in class com.fasterxml.jackson.core.TSFBuilder<YAMLFactory,YAMLFactoryBuilder>Copyright © 2022 FasterXML. All rights reserved.