Package com.itextpdf.commons.utils
Class JsonUtil.CustomPrettyPrinter
java.lang.Object
com.fasterxml.jackson.core.util.DefaultPrettyPrinter
com.itextpdf.commons.utils.JsonUtil.CustomPrettyPrinter
- All Implemented Interfaces:
com.fasterxml.jackson.core.PrettyPrinter
,com.fasterxml.jackson.core.util.Instantiatable<com.fasterxml.jackson.core.util.DefaultPrettyPrinter>
,Serializable
- Enclosing class:
JsonUtil
private static class JsonUtil.CustomPrettyPrinter
extends com.fasterxml.jackson.core.util.DefaultPrettyPrinter
This class is used to define a custom separator and array
indent to achieve the same serialization in Java and .NET.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
com.fasterxml.jackson.core.util.DefaultPrettyPrinter.FixedSpaceIndenter, com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter, com.fasterxml.jackson.core.util.DefaultPrettyPrinter.NopIndenter
-
Field Summary
Fields inherited from class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
_arrayEmptySeparator, _arrayIndenter, _arrayValueSeparator, _nesting, _objectEmptySeparator, _objectEntrySeparator, _objectFieldValueSeparatorWithSpaces, _objectIndenter, _rootSeparator, _separators, _spacesInObjectEntries, DEFAULT_ROOT_VALUE_SEPARATOR
Fields inherited from interface com.fasterxml.jackson.core.PrettyPrinter
DEFAULT_SEPARATORS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.core.util.DefaultPrettyPrinter
Methods inherited from class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
_withSpaces, beforeArrayValues, beforeObjectEntries, indentArraysWith, indentObjectsWith, withArrayIndenter, withObjectIndenter, withoutSpacesInObjectEntries, withRootSeparator, withRootSeparator, withSeparators, withSpacesInObjectEntries, writeArrayValueSeparator, writeEndArray, writeEndObject, writeObjectEntrySeparator, writeObjectFieldValueSeparator, writeRootValueSeparator, writeStartArray, writeStartObject
-
Constructor Details
-
CustomPrettyPrinter
public CustomPrettyPrinter()
-
-
Method Details
-
createInstance
public com.fasterxml.jackson.core.util.DefaultPrettyPrinter createInstance()- Specified by:
createInstance
in interfacecom.fasterxml.jackson.core.util.Instantiatable<com.fasterxml.jackson.core.util.DefaultPrettyPrinter>
- Overrides:
createInstance
in classcom.fasterxml.jackson.core.util.DefaultPrettyPrinter
-