本文整理了Java中com.fasterxml.jackson.databind.ObjectMapper._defaultPrettyPrinter()
方法的一些代码示例,展示了ObjectMapper._defaultPrettyPrinter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectMapper._defaultPrettyPrinter()
方法的具体详情如下:
包路径:com.fasterxml.jackson.databind.ObjectMapper
类名称: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());
}
内容来源于网络,如有侵权,请联系作者删除!