Example usage for com.fasterxml.jackson.dataformat.yaml YAMLFactory enable

List of usage examples for com.fasterxml.jackson.dataformat.yaml YAMLFactory enable

Introduction

In this page you can find the example usage for com.fasterxml.jackson.dataformat.yaml YAMLFactory enable.

Prototype

public YAMLFactory enable(YAMLGenerator.Feature f) 

Source Link

Document

Method for enabling specified generator features (check YAMLGenerator.Feature for list of features)

Usage

From source file:org.smartdeveloperhub.vocabulary.config.ConfigurationFactory.java

private static ObjectMapper writingMapper() {
    final YAMLFactory factory = yamlFactory();
    factory.enable(JsonGenerator.Feature.ESCAPE_NON_ASCII);
    final ObjectMapper mapper = new ObjectMapper(factory);
    mapper.enable(SerializationFeature.INDENT_OUTPUT);
    return mapper;
}