Class SerdeToonConfiguration

java.lang.Object
io.micronaut.serde.toon.SerdeToonConfiguration

@ConfigurationProperties("micronaut.serde.format.toon") public final class SerdeToonConfiguration extends Object
TOON-specific configuration.
Since:
3.3.0
  • Field Details

  • Constructor Details

    • SerdeToonConfiguration

      public SerdeToonConfiguration()
  • Method Details

    • getDelimiter

      public SerdeToonConfiguration.Delimiter getDelimiter()
      Returns the configured delimiter used to separate inline array values, tabular row cells, and keyed entry-row cells.
      Returns:
      The configured delimiter
    • setDelimiter

      public void setDelimiter(SerdeToonConfiguration.Delimiter delimiter)
      Sets the delimiter used to separate inline array values, tabular row cells, and keyed entry-row cells.
      Parameters:
      delimiter - The delimiter
    • getIndent

      public int getIndent()
      Returns the configured number of spaces used per indentation level.
      Returns:
      The indent size
    • setIndent

      public void setIndent(int indent)
      Sets the number of spaces used per indentation level.
      Parameters:
      indent - The indent size
    • getMaxInputSize

      public long getMaxInputSize()
      Returns the maximum number of bytes of TOON input that is read when decoding.
      Returns:
      The maximum input size in bytes, or UNLIMITED (the default)
    • setMaxInputSize

      public void setMaxInputSize(long maxInputSize)
      Sets the maximum number of bytes of TOON input that is read when decoding. Input larger than this is rejected with a SerdeException.
      Parameters:
      maxInputSize - The maximum input size in bytes, or UNLIMITED