com.fasterxml.jackson.core.PrettyPrinter
implements
com.fasterxml.jackson.core.util.DefaultPrettyPrinter , com.fasterxml.jackson.core.util.MinimalPrettyPrinter
| Modifier and Type | Class and Description |
|---|---|
| public static enum | Separators.Spacing
Define the spacing around elements like commas and colons. |
| Modifier and Type | Field and Description |
|---|---|
| private final char | |
| private final Separators. | |
| 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 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 objectFieldValueSeparator, char objectEntrySeparator, char arrayValueSeparator)
Create an instance with the specified separator characters. |
| public | Separators(String rootSeparator, char objectFieldValueSeparator, Separators.
Create an instance with the specified separator characters and spaces around those characters. |
| Modifier and Type | Method and Description |
|---|---|
| public static Separators | |
| public char | |
| public Separators. | |
| public char | |
| public Separators. | |
| public char | |
| public Separators. | |
| public String | |
| public Separators | |
| public Separators | |
| public Separators | |
| public Separators | |
| public Separators | |
| public Separators | |
| public Separators |
| arrayValueSeparator | back to summary |
|---|---|
| private final char arrayValueSeparator | |
| arrayValueSpacing | back to summary |
|---|---|
| private final Separators. | |
| 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.
| |
| objectEntrySeparator | back to summary |
|---|---|
| private final char objectEntrySeparator | |
| objectEntrySpacing | back to summary |
|---|---|
| private final Separators. | |
| objectFieldValueSeparator | back to summary |
|---|---|
| private final char objectFieldValueSeparator | |
| objectFieldValueSpacing | 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 objectFieldValueSeparator, char objectEntrySeparator, char arrayValueSeparator) Create an instance with the specified separator characters. There will be spaces before and
after the | |
| Separators | back to summary |
|---|---|
| public Separators(String rootSeparator, char objectFieldValueSeparator, Separators. Create an instance with the specified separator characters and spaces around those characters.
| |
| createDefaultInstance | back to summary |
|---|---|
| public static Separators createDefaultInstance() | |
| getArrayValueSeparator | back to summary |
|---|---|
| public char getArrayValueSeparator() | |
| getArrayValueSpacing | back to summary |
|---|---|
public Separators.
| |
| getObjectEntrySeparator | back to summary |
|---|---|
| public char getObjectEntrySeparator() | |
| getObjectEntrySpacing | back to summary |
|---|---|
public Separators.
| |
| getObjectFieldValueSeparator | back to summary |
|---|---|
| public char getObjectFieldValueSeparator() | |
| getObjectFieldValueSpacing | back to summary |
|---|---|
public Separators.
| |
| getRootSeparator | back to summary |
|---|---|
public String getRootSeparator()
| |
| withArrayValueSeparator | back to summary |
|---|---|
| public Separators withArrayValueSeparator(char sep) | |
| withArrayValueSpacing | back to summary |
|---|---|
public Separators withArrayValueSpacing(Separators.
| |
| withObjectEntrySeparator | back to summary |
|---|---|
| public Separators withObjectEntrySeparator(char sep) | |
| withObjectEntrySpacing | back to summary |
|---|---|
public Separators withObjectEntrySpacing(Separators.
| |
| withObjectFieldValueSeparator | back to summary |
|---|---|
| public Separators withObjectFieldValueSeparator(char sep) | |
| withObjectFieldValueSpacing | back to summary |
|---|---|
public Separators withObjectFieldValueSpacing(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. | |