Class YAMLFactoryBuilder
TSFBuilder
implementation for constructing YAMLFactory
instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.yaml.snakeyaml.DumperOptionsConfiguration for underlying generator to follow, if specified; left asnullfor backwards compatibility (which means the dumper options are derived based onYAMLGenerator.Features).protected intSet ofYAMLGenerator.Features enabled, as bitmask.protected intSet ofYAMLParser.Features enabled, as bitmask.protected org.yaml.snakeyaml.LoaderOptionsConfiguration for underlying parser to follow, if specified; left asnullfor backwards compatibility (which means whatever default settingsSnakeYAMLdeems best).protected StringQuotingCheckerHelper object used to determine whether property names, String values must be quoted or not.protected org.yaml.snakeyaml.DumperOptions.VersionYAML version for underlying generator to follow, if specified; left asnullfor backwards compatibility (which means whatever default settingsSnakeYAMLdeems best).Fields inherited from class com.fasterxml.jackson.core.TSFBuilder
_errorReportConfiguration, _factoryFeatures, _generatorDecorators, _inputDecorator, _outputDecorator, _recyclerPool, _streamReadConstraints, _streamReadFeatures, _streamWriteConstraints, _streamWriteFeatures, DEFAULT_FACTORY_FEATURE_FLAGS, DEFAULT_GENERATOR_FEATURE_FLAGS, DEFAULT_PARSER_FEATURE_FLAGS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbuild()configure(YAMLGenerator.Feature f, boolean state) configure(YAMLParser.Feature f, boolean state) disable(YAMLGenerator.Feature first, YAMLGenerator.Feature... other) disable(YAMLParser.Feature first, YAMLParser.Feature... other) org.yaml.snakeyaml.DumperOptionsConfiguration for underlying generator to follow, if specified; left asnullfor backwards compatibility (which means the dumper options are derived based onYAMLGenerator.Features).dumperOptions(org.yaml.snakeyaml.DumperOptions dumperOptions) Configuration for underlying generator to follow, if specified; left asnullfor backwards compatibility (which means the dumper options are derived based onYAMLGenerator.Features).enable(YAMLGenerator.Feature first, YAMLGenerator.Feature... other) enable(YAMLParser.Feature first, YAMLParser.Feature... other) intintorg.yaml.snakeyaml.LoaderOptionsConfiguration for underlying parser to follow, if specified; left asnullfor backwards compatibility (which means whatever default settingsSnakeYAMLdeems best).loaderOptions(org.yaml.snakeyaml.LoaderOptions loaderOptions) Configuration for underlying parser to follow, if specified; left asnullfor backwards compatibility (which means whatever default settingsSnakeYAMLdeems best).Method for specifying either customStringQuotingCheckerto use instead of default one, or, that default one (seeStringQuotingChecker.Default.instance()) is to be used (when passingnullorg.yaml.snakeyaml.DumperOptions.VersionyamlVersionToWrite(org.yaml.snakeyaml.DumperOptions.Version v) Method for specifying YAML version for generator to use (to produce compliant output); ifnullpassed, will letSnakeYAMLuse its default settings.Methods inherited from class com.fasterxml.jackson.core.TSFBuilder
_copy, _legacyDisable, _legacyDisable, _legacyEnable, _legacyEnable, _this, addDecorator, configure, configure, configure, configure, configure, disable, disable, disable, disable, disable, disable, disable, disable, disable, enable, enable, enable, enable, enable, enable, enable, enable, enable, errorReportConfiguration, factoryFeaturesMask, inputDecorator, inputDecorator, outputDecorator, outputDecorator, recyclerPool, recyclerPool, streamReadConstraints, streamReadFeatures, streamWriteConstraints, streamWriteFeatures
-
Field Details
-
_formatGeneratorFeatures
protected int _formatGeneratorFeaturesSet ofYAMLGenerator.Features enabled, as bitmask. -
_formatParserFeatures
-
_quotingChecker
Helper object used to determine whether property names, String values must be quoted or not.- Since:
- 2.12
-
_version
protected org.yaml.snakeyaml.DumperOptions.Version _versionYAML version for underlying generator to follow, if specified; left asnullfor backwards compatibility (which means whatever default settingsSnakeYAMLdeems best).Ignored if you provide your own
DumperOptions. -
_loaderOptions
protected org.yaml.snakeyaml.LoaderOptions _loaderOptionsConfiguration for underlying parser to follow, if specified; left asnullfor backwards compatibility (which means whatever default settingsSnakeYAMLdeems 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.
- Since:
- 2.14
-
_dumperOptions
protected org.yaml.snakeyaml.DumperOptions _dumperOptionsConfiguration for underlying generator to follow, if specified; left asnullfor backwards compatibility (which means the dumper options are derived based onYAMLGenerator.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_BREAKS
- Since:
- 2.14
-
-
Constructor Details
-
YAMLFactoryBuilder
protected YAMLFactoryBuilder() -
YAMLFactoryBuilder
-
-
Method Details
-
enable
-
enable
-
disable
-
disable
-
configure
-
enable
-
enable
-
disable
-
disable
-
configure
-
stringQuotingChecker
Method for specifying either customStringQuotingCheckerto use instead of default one, or, that default one (seeStringQuotingChecker.Default.instance()) is to be used (when passingnull- Parameters:
sqc- Checker to use (if non-null), ornullto use the default one (seeStringQuotingChecker.Default.instance())- Returns:
- This builder instance, to allow chaining
-
yamlVersionToWrite
Method for specifying YAML version for generator to use (to produce compliant output); ifnullpassed, will letSnakeYAMLuse its default settings.- Parameters:
v- YAML specification version to use for output, if not-null;nullfor default handling- Returns:
- This builder instance, to allow chaining
-
loaderOptions
Configuration for underlying parser to follow, if specified; left asnullfor backwards compatibility (which means whatever default settingsSnakeYAMLdeems 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.
- Parameters:
loaderOptions- theSnakeYAMLconfiguration to use when parsing YAML- Returns:
- This builder instance, to allow chaining
- Since:
- 2.14
-
dumperOptions
Configuration for underlying generator to follow, if specified; left asnullfor backwards compatibility (which means the dumper options are derived based onYAMLGenerator.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_BREAKS
- Parameters:
dumperOptions- theSnakeYAMLconfiguration to use when generating YAML- Returns:
- This builder instance, to allow chaining
- Since:
- 2.14
-
formatParserFeaturesMask
public int formatParserFeaturesMask() -
formatGeneratorFeaturesMask
public int formatGeneratorFeaturesMask() -
yamlVersionToWrite
public org.yaml.snakeyaml.DumperOptions.Version yamlVersionToWrite() -
stringQuotingChecker
-
loaderOptions
public org.yaml.snakeyaml.LoaderOptions loaderOptions()Configuration for underlying parser to follow, if specified; left asnullfor backwards compatibility (which means whatever default settingsSnakeYAMLdeems 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.
- Returns:
- the
SnakeYAMLconfiguration to use when parsing YAML - Since:
- 2.14
-
dumperOptions
public org.yaml.snakeyaml.DumperOptions dumperOptions()Configuration for underlying generator to follow, if specified; left asnullfor backwards compatibility (which means the dumper options are derived based onYAMLGenerator.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_BREAKS
- Returns:
- the
SnakeYAMLconfiguration to use when generating YAML - Since:
- 2.14
-
build
- Specified by:
buildin classcom.fasterxml.jackson.core.TSFBuilder<YAMLFactory, YAMLFactoryBuilder>
-