private static class JsonBackend.TwoSpacesIndenter
extends java.lang.Object
implements com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter
| Modifier and Type | Field and Description |
|---|---|
private static JsonBackend.TwoSpacesIndenter |
_indenterInstance
The singleton instance.
|
| Modifier | Constructor and Description |
|---|---|
private |
TwoSpacesIndenter() |
| Modifier and Type | Method and Description |
|---|---|
static JsonBackend.TwoSpacesIndenter |
instance()
The singleton getter.
|
boolean |
isInline()
Check whether the JSON string is inlined.
|
void |
writeIndentation(com.fasterxml.jackson.core.JsonGenerator g,
int level)
Core method of the utility class.
|
private static final JsonBackend.TwoSpacesIndenter _indenterInstance
public static JsonBackend.TwoSpacesIndenter instance()
public boolean isInline()
isInline in interface com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenterfalse.public void writeIndentation(com.fasterxml.jackson.core.JsonGenerator g,
int level)
throws java.io.IOException
writeIndentation in interface com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenterg - The JsonGenerator in use.level - The indentation level.java.io.IOException - if g.writeRaw fails.