use of org.yaml.snakeyaml.DumperOptions in project Apktool by iBotPeaches.
the class MetaInfo method save.
public void save(Writer output) {
DumperOptions options = new DumperOptions();
options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
getYaml().dump(this, output);
}
use of org.yaml.snakeyaml.DumperOptions in project pinot by linkedin.
the class PerfBenchmarkDriverConf method main.
public static void main(String[] args) {
DumperOptions options = new DumperOptions();
options.setIndent(4);
options.setDefaultFlowStyle(FlowStyle.BLOCK);
Yaml yaml = new Yaml(options);
String dump = yaml.dump(new PerfBenchmarkDriverConf());
System.out.println(dump);
}
use of org.yaml.snakeyaml.DumperOptions in project spring-boot by spring-projects.
the class OriginTrackedYamlLoader method createYaml.
@Override
protected Yaml createYaml() {
BaseConstructor constructor = new OriginTrackingConstructor();
Representer representer = new Representer();
DumperOptions dumperOptions = new DumperOptions();
LimitedResolver resolver = new LimitedResolver();
return new Yaml(constructor, representer, dumperOptions, resolver);
}
use of org.yaml.snakeyaml.DumperOptions in project camel by apache.
the class SnakeYAMLDataFormat method defaultDumperOptions.
private DumperOptions defaultDumperOptions(CamelContext context) {
DumperOptions yamlDumperOptions = new DumperOptions();
yamlDumperOptions.setPrettyFlow(prettyFlow);
return yamlDumperOptions;
}
use of org.yaml.snakeyaml.DumperOptions in project liquibase by liquibase.
the class YamlSerializer method createYaml.
protected Yaml createYaml() {
if (isJson()) {
DumperOptions dumperOptions = new DumperOptions();
dumperOptions.setPrettyFlow(true);
dumperOptions.setDefaultFlowStyle(DumperOptions.FlowStyle.FLOW);
dumperOptions.setDefaultScalarStyle(DumperOptions.ScalarStyle.DOUBLE_QUOTED);
dumperOptions.setWidth(Integer.MAX_VALUE);
return new Yaml(getLiquibaseRepresenter(), dumperOptions);
}
DumperOptions dumperOptions = new DumperOptions();
dumperOptions.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
return new Yaml(getLiquibaseRepresenter(), dumperOptions);
}
Aggregations