com.fasterxml.jackson.databind.ObjectMapper._defaultPrettyPrinter()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(112)

本文整理了Java中com.fasterxml.jackson.databind.ObjectMapper._defaultPrettyPrinter()方法的一些代码示例,展示了ObjectMapper._defaultPrettyPrinter()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectMapper._defaultPrettyPrinter()方法的具体详情如下:
包路径:com.fasterxml.jackson.databind.ObjectMapper
类名称:ObjectMapper
方法名:_defaultPrettyPrinter

ObjectMapper._defaultPrettyPrinter介绍

[英]Helper method that should return default pretty-printer to use for generators constructed by this mapper, when instructed to use default pretty printer.
[中]助手方法,当指示使用默认的漂亮打印机时,该方法应返回默认的漂亮打印机以用于此映射程序构造的生成器。

代码示例

代码示例来源:origin: hstaudacher/osgi-jax-rs-connector

/**
 * Factory method for constructing {@link ObjectWriter} that will
 * serialize objects using the default pretty printer for indentation
 */
@SuppressWarnings("unchecked")
public <W extends ObjectWriter> W writerWithDefaultPrettyPrinter() {
  return (W) _newWriter(getSerializationConfig(),
      /*root type*/ null, _defaultPrettyPrinter());
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Factory method for constructing {@link ObjectWriter} that will
 * serialize objects using the default pretty printer for indentation
 */
public ObjectWriter writerWithDefaultPrettyPrinter() {
  return new ObjectWriter(this, getSerializationConfig(),
      /*root type*/ null, _defaultPrettyPrinter());
}

代码示例来源:origin: com.eclipsesource.jaxrs/jersey-all

/**
 * Factory method for constructing {@link ObjectWriter} that will
 * serialize objects using the default pretty printer for indentation
 */
@SuppressWarnings("unchecked")
public <W extends ObjectWriter> W writerWithDefaultPrettyPrinter() {
  return (W) _newWriter(getSerializationConfig(),
      /*root type*/ null, _defaultPrettyPrinter());
}

代码示例来源:origin: com.fasterxml.jackson.core/com.springsource.com.fasterxml.jackson.core.jackson-databind

/**
 * Factory method for constructing {@link ObjectWriter} that will
 * serialize objects using the default pretty printer for indentation
 */
public ObjectWriter writerWithDefaultPrettyPrinter() {
  return new ObjectWriter(this, getSerializationConfig(),
      /*root type*/ null, _defaultPrettyPrinter());
}

相关文章

微信公众号

最新文章

更多

ObjectMapper类方法