Module tools.jackson.core
Package tools.jackson.core.util
Class DefaultPrettyPrinter.FixedSpaceIndenter
java.lang.Object
tools.jackson.core.util.DefaultPrettyPrinter.NopIndenter
tools.jackson.core.util.DefaultPrettyPrinter.FixedSpaceIndenter
- All Implemented Interfaces:
Serializable,DefaultPrettyPrinter.Indenter
- 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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninstance()booleanisInline()voidwriteIndentation(JsonGenerator g, int level)
-
Constructor Details
-
FixedSpaceIndenter
public FixedSpaceIndenter()
-
-
Method Details
-
instance
-
writeIndentation
- Specified by:
writeIndentationin interfaceDefaultPrettyPrinter.Indenter- Overrides:
writeIndentationin classDefaultPrettyPrinter.NopIndenter- Throws:
JacksonException
-
isInline
public boolean isInline()- Specified by:
isInlinein interfaceDefaultPrettyPrinter.Indenter- Overrides:
isInlinein classDefaultPrettyPrinter.NopIndenter- Returns:
- True if indenter is considered inline (does not add linefeeds), false otherwise
-