TSFBuilder
implementation for constructing YAMLFactory
instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.snakeyaml.engine.v2.api.DumpSettingsConfiguration for underlying generator to follow, if specified; left asnullfor backwards compatibility (which means the dumper options are derived based onYAMLWriteFeatures).protected org.snakeyaml.engine.v2.api.LoadSettingsConfiguration 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.snakeyaml.engine.v2.common.SpecVersionYAML version for underlying generator to follow, if specified; left asnullfor backwards compatibility (which means whatever default settingsSnakeYAMLdeems best).Fields inherited from class tools.jackson.core.base.DecorableTSFactory.DecorableTSFBuilder
_generatorDecorators, _inputDecorator, _outputDecoratorFields inherited from class tools.jackson.core.TSFBuilder
_errorReportConfiguration, _factoryFeatures, _formatReadFeatures, _formatWriteFeatures, _recyclerPool, _streamReadConstraints, _streamReadFeatures, _streamWriteConstraints, _streamWriteFeatures -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbuild()configure(YAMLReadFeature f, boolean state) configure(YAMLWriteFeature f, boolean state) disable(YAMLReadFeature first, YAMLReadFeature... other) disable(YAMLWriteFeature first, YAMLWriteFeature... other) dumperOptions(org.snakeyaml.engine.v2.api.DumpSettings dumperOptions) Configuration for underlying generator to follow, if specified; left asnullfor backwards compatibility (which means the dumper options are derived based onYAMLWriteFeatures).org.snakeyaml.engine.v2.api.DumpSettingsConfiguration for underlying generator to follow, if specified; left asnullfor backwards compatibility (which means the dumper options are derived based onYAMLWriteFeatures).enable(YAMLReadFeature first, YAMLReadFeature... other) enable(YAMLWriteFeature first, YAMLWriteFeature... other) org.snakeyaml.engine.v2.api.LoadSettingsConfiguration for underlying parser to follow, if specified; left asnullfor backwards compatibility (which means whatever default settingsSnakeYAMLdeems best).loadSettings(org.snakeyaml.engine.v2.api.LoadSettings settings) 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.snakeyaml.engine.v2.common.SpecVersionyamlVersionToWrite(org.snakeyaml.engine.v2.common.SpecVersion v) Method for specifying YAML version for generator to use (to produce compliant output); ifnullpassed, will letSnakeYAMLuse its default settings.Methods inherited from class tools.jackson.core.base.DecorableTSFactory.DecorableTSFBuilder
addDecorator, generatorDecorators, inputDecorator, inputDecorator, outputDecorator, outputDecoratorMethods inherited from class tools.jackson.core.TSFBuilder
_this, configure, configure, configure, configureForJackson2, disable, disable, disable, disable, disable, enable, enable, enable, enable, enable, errorReportConfiguration, factoryFeaturesMask, formatReadFeaturesMask, formatWriteFeaturesMask, recyclerPool, recyclerPool, streamReadConstraints, streamReadFeaturesMask, streamWriteConstraints, streamWriteFeaturesMask
-
Field Details
-
_quotingChecker
Helper object used to determine whether property names, String values must be quoted or not. -
_version
protected org.snakeyaml.engine.v2.common.SpecVersion _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. -
_loadSettings
protected org.snakeyaml.engine.v2.api.LoadSettings _loadSettingsConfiguration 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.
-
_dumpSettings
protected org.snakeyaml.engine.v2.api.DumpSettings _dumpSettingsConfiguration for underlying generator to follow, if specified; left asnullfor backwards compatibility (which means the dumper options are derived based onYAMLWriteFeatures).These
YAMLWriteFeatures 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
-
-
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
-
loadSettings
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:
settings- theSnakeYAMLconfiguration to use when parsing YAML- Returns:
- This builder instance, to allow chaining
-
dumperOptions
Configuration for underlying generator to follow, if specified; left asnullfor backwards compatibility (which means the dumper options are derived based onYAMLWriteFeatures).These
YAMLWriteFeatures 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
-
yamlVersionToWrite
public org.snakeyaml.engine.v2.common.SpecVersion yamlVersionToWrite() -
stringQuotingChecker
-
loadSettings
public org.snakeyaml.engine.v2.api.LoadSettings loadSettings()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
-
dumpSettings
public org.snakeyaml.engine.v2.api.DumpSettings dumpSettings()Configuration for underlying generator to follow, if specified; left asnullfor backwards compatibility (which means the dumper options are derived based onYAMLWriteFeatures).These
YAMLWriteFeatures 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
-
build
- Specified by:
buildin classtools.jackson.core.TSFBuilder<YAMLFactory,YAMLFactoryBuilder>
-