tools.jackson.core.PrettyPrinter
implements
tools.jackson.core.util.DefaultPrettyPrinter , tools.jackson.core.util.MinimalPrettyPrinter
| Modifier and Type | Class and Description |
|---|---|
| public static enum | Separators.
Define the spacing around elements like commas and colons. |
| Modifier and Type | Field and Description |
|---|---|
| private final char | |
| private final Separators. | |
| private final String | |
| public static final String | DEFAULT_ARRAY_EMPTY_SEPARATOR
String to use in empty Array to separate start and end markers. |
| public static final String | DEFAULT_OBJECT_EMPTY_SEPARATOR
String to use in empty Object to separate start and end markers. |
| public static final String | DEFAULT_ROOT_VALUE_SEPARATOR
Constant that specifies default "root-level" separator to use between root values: a single space character. |
| private final String | |
| private final char | |
| private final Separators. | |
| private final char | |
| private final Separators. | |
| private final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Separators(char
Separator between Object property name and value objectNameValueSeparator, char Separator between name-value entries in Object objectEntrySeparator, char Separator between Array elements arrayElementSeparator)Constructor for creating an instance with default settings for all separators. |
| public | Separators(String rootSeparator, char objectNameValueSeparator, Separators.
|
| Modifier and Type | Method and Description |
|---|---|
| public static Separators | |
| public char | |
| public Separators. | |
| public String | |
| public String | |
| public char | |
| public Separators. | |
| public char | |
| public Separators. | |
| public String | |
| public Separators | |
| public Separators | |
| public Separators | |
| public Separators | |
| public Separators | |
| public Separators | |
| public Separators | |
| public Separators | |
| public Separators |
| arrayElementSeparator | back to summary |
|---|---|
| private final char arrayElementSeparator | |
| arrayElementSpacing | back to summary |
|---|---|
| private final Separators. | |
| arrayEmptySeparator | back to summary |
|---|---|
| private final String arrayEmptySeparator | |
| DEFAULT_ARRAY_EMPTY_SEPARATOR | back to summary |
|---|---|
| public static final String DEFAULT_ARRAY_EMPTY_SEPARATOR String to use in empty Array to separate start and end markers.
Default is single space, resulting in output of | |
| DEFAULT_OBJECT_EMPTY_SEPARATOR | back to summary |
|---|---|
| public static final String DEFAULT_OBJECT_EMPTY_SEPARATOR String to use in empty Object to separate start and end markers.
Default is single space, resulting in output of | |
| DEFAULT_ROOT_VALUE_SEPARATOR | back to summary |
|---|---|
| public static final String DEFAULT_ROOT_VALUE_SEPARATOR Constant that specifies default "root-level" separator to use between root values: a single space character. | |
| objectEmptySeparator | back to summary |
|---|---|
| private final String objectEmptySeparator | |
| objectEntrySeparator | back to summary |
|---|---|
| private final char objectEntrySeparator | |
| objectEntrySpacing | back to summary |
|---|---|
| private final Separators. | |
| objectNameValueSeparator | back to summary |
|---|---|
| private final char objectNameValueSeparator | |
| objectNameValueSpacing | back to summary |
|---|---|
| private final Separators. | |
| rootSeparator | back to summary |
|---|---|
| private final String rootSeparator | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Separators | back to summary |
|---|---|
| public Separators() | |
| Separators | back to summary |
|---|---|
| public Separators(char objectNameValueSeparator, char objectEntrySeparator, char arrayElementSeparator) Constructor for creating an instance with default settings for all separators.
| |
| Separators | back to summary |
|---|---|
| public Separators(String rootSeparator, char objectNameValueSeparator, Separators. | |
| createDefaultInstance | back to summary |
|---|---|
| public static Separators createDefaultInstance() | |
| getArrayElementSeparator | back to summary |
|---|---|
| public char getArrayElementSeparator() | |
| getArrayElementSpacing | back to summary |
|---|---|
| public Separators. | |
| getArrayEmptySeparator | back to summary |
|---|---|
public String getArrayEmptySeparator()
| |
| getObjectEmptySeparator | back to summary |
|---|---|
public String getObjectEmptySeparator()
| |
| getObjectEntrySeparator | back to summary |
|---|---|
| public char getObjectEntrySeparator() | |
| getObjectEntrySpacing | back to summary |
|---|---|
| public Separators. | |
| getObjectNameValueSeparator | back to summary |
|---|---|
| public char getObjectNameValueSeparator() | |
| getObjectNameValueSpacing | back to summary |
|---|---|
| public Separators. | |
| getRootSeparator | back to summary |
|---|---|
| public String getRootSeparator() | |
| withArrayElementSeparator | back to summary |
|---|---|
| public Separators withArrayElementSeparator(char sep) | |
| withArrayElementSpacing | back to summary |
|---|---|
| public Separators withArrayElementSpacing(Separators. | |
| withArrayEmptySeparator | back to summary |
|---|---|
| public Separators withArrayEmptySeparator(String sep) | |
| withObjectEmptySeparator | back to summary |
|---|---|
| public Separators withObjectEmptySeparator(String sep) | |
| withObjectEntrySeparator | back to summary |
|---|---|
| public Separators withObjectEntrySeparator(char sep) | |
| withObjectEntrySpacing | back to summary |
|---|---|
| public Separators withObjectEntrySpacing(Separators. | |
| withObjectNameValueSeparator | back to summary |
|---|---|
| public Separators withObjectNameValueSeparator(char sep) | |
| withObjectNameValueSpacing | back to summary |
|---|---|
| public Separators withObjectNameValueSpacing(Separators. | |
| withRootSeparator | back to summary |
|---|---|
| public Separators withRootSeparator(String sep) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Separators. | |
| public static final Separators. | |
| public static final Separators. | |
| public static final Separators. | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public String | |
| public static Separators. | |
| public static Separators. |
| AFTER | back to summary |
|---|---|
| public static final Separators. | |
| BEFORE | back to summary |
|---|---|
| public static final Separators. | |
| BOTH | back to summary |
|---|---|
| public static final Separators. | |
| NONE | back to summary |
|---|---|
| public static final Separators. | |
| spacesAfter | back to summary |
|---|---|
| private final String spacesAfter | |
| spacesBefore | back to summary |
|---|---|
| private final String spacesBefore | |
| Spacing | back to summary |
|---|---|
| private Spacing(String spacesBefore, String spacesAfter) | |
| apply | back to summary |
|---|---|
| public String apply(char separator) | |
| spacesAfter | back to summary |
|---|---|
| public String spacesAfter() | |
| spacesBefore | back to summary |
|---|---|
| public String spacesBefore() | |
| valueOf | back to summary |
|---|---|
| public static Separators. | |
| values | back to summary |
|---|---|
| public static Separators. | |