use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.util.DefaultIndenter in project spring-framework by spring-projects.
the class Jackson2JsonEncoder method initSsePrettyPrinter.
private static PrettyPrinter initSsePrettyPrinter() {
DefaultPrettyPrinter printer = new DefaultPrettyPrinter();
printer.indentObjectsWith(new DefaultIndenter(" ", "\ndata:"));
return printer;
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.util.DefaultIndenter in project flink by apache.
the class RestAPIStabilityTest method writeSnapshot.
private static void writeSnapshot(final String versionedSnapshotFileName, final RestAPISnapshot snapshot) throws IOException {
OBJECT_MAPPER.writer(new DefaultPrettyPrinter().withObjectIndenter(new DefaultIndenter().withLinefeed("\n"))).writeValue(new File("src/test/resources/" + versionedSnapshotFileName), snapshot);
System.out.println("REST API snapshot " + versionedSnapshotFileName + " was updated, please remember to commit the snapshot.");
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.util.DefaultIndenter in project rest.li by linkedin.
the class IndentedPdlBuilder method getPrettyPrinter.
private PrettyPrinter getPrettyPrinter() {
DefaultPrettyPrinter prettyPrinter = new DefaultPrettyPrinter();
prettyPrinter.indentObjectsWith(new DefaultIndenter(getIndentSpaces(1), DefaultIndenter.SYS_LF + getIndentSpaces(_indentDepth)));
return prettyPrinter;
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.util.DefaultIndenter in project spring-framework by spring-projects.
the class AbstractJackson2HttpMessageConverter method init.
protected void init(ObjectMapper objectMapper) {
this.objectMapper = objectMapper;
setDefaultCharset(DEFAULT_CHARSET);
DefaultPrettyPrinter prettyPrinter = new DefaultPrettyPrinter();
prettyPrinter.indentObjectsWith(new DefaultIndenter(" ", "\ndata:"));
this.ssePrettyPrinter = prettyPrinter;
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.util.DefaultIndenter in project qpp-conversion-tool by CMSgov.
the class JsonWrapper method getPrinter.
private static DefaultPrettyPrinter getPrinter() {
DefaultIndenter withLinefeed = new DefaultIndenter(" ", "\n");
DefaultPrettyPrinter printer = new DefaultPrettyPrinter();
printer.indentObjectsWith(withLinefeed);
return printer;
}
Aggregations