DefaultPrettyPrinter.FixedSpaceIndenter (Jackson-core 2.12.0 API)
Date: 2021-01-08

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, 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 and Description
    --- | ---
    `static DefaultPrettyPrinter.FixedSpaceIndenter` | `instance`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `FixedSpaceIndenter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isInline()`
    `void` | `writeIndentation(JsonGenerator g, int level)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### instance

          public static final DefaultPrettyPrinter.FixedSpaceIndenter instance

  - ### Constructor Detail

    - #### FixedSpaceIndenter

          public FixedSpaceIndenter()

  - ### Method Detail

    - #### writeIndentation

          public void writeIndentation(JsonGenerator g,
                                       int level)
                                throws IOException

      Specified by:
        `writeIndentation` in interface `DefaultPrettyPrinter.Indenter`
      Overrides:
        `writeIndentation` in class `DefaultPrettyPrinter.NopIndenter`
      Throws:
        `IOException`

    - #### isInline

          public boolean isInline()

      Specified by:
        `isInline` in interface `DefaultPrettyPrinter.Indenter`
      Overrides:
        `isInline` in class `DefaultPrettyPrinter.NopIndenter`
      Returns:
        True if indenter is considered inline (does not add linefeeds), false otherwise

Copyright © 2008–2021 FasterXML. All rights reserved.