Package com.fasterxml.jackson.core.util
Class DefaultPrettyPrinter.FixedSpaceIndenter
- java.lang.Object
-
- com.fasterxml.jackson.core.util.DefaultPrettyPrinter.NopIndenter
-
- com.fasterxml.jackson.core.util.DefaultPrettyPrinter.FixedSpaceIndenter
-
- All Implemented Interfaces:
DefaultPrettyPrinter.Indenter
,java.io.Serializable
- Enclosing class:
- DefaultPrettyPrinter
public static class DefaultPrettyPrinter.FixedSpaceIndenter extends DefaultPrettyPrinter.NopIndenter
This is a very simple indenter that only adds a single space for indentation. It is used as the default indenter for array values.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultPrettyPrinter.FixedSpaceIndenter
instance
-
Constructor Summary
Constructors Constructor Description FixedSpaceIndenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isInline()
void
writeIndentation(JsonGenerator g, int level)
-
-
-
Field Detail
-
instance
public static final DefaultPrettyPrinter.FixedSpaceIndenter instance
-
-
Method Detail
-
writeIndentation
public void writeIndentation(JsonGenerator g, int level) throws java.io.IOException
- Specified by:
writeIndentation
in interfaceDefaultPrettyPrinter.Indenter
- Overrides:
writeIndentation
in classDefaultPrettyPrinter.NopIndenter
- Throws:
java.io.IOException
-
isInline
public boolean isInline()
- Specified by:
isInline
in interfaceDefaultPrettyPrinter.Indenter
- Overrides:
isInline
in classDefaultPrettyPrinter.NopIndenter
- Returns:
- True if indenter is considered inline (does not add linefeeds), false otherwise
-
-