Class InlineRootEncoder

java.lang.Object
io.micronaut.serde.toml.encodestyle.InlineRootEncoder

@Internal public final class InlineRootEncoder extends Object
Renderer for TOML inline output style.
Since:
3.0.1
  • Method Details

    • appendInlineDocument

      public static void appendInlineDocument(StringBuilder builder, io.micronaut.json.tree.JsonNode value) throws IOException
      Append a complete inline-style TOML document.
      Parameters:
      builder - The target builder
      value - The root TOML value
      Throws:
      IOException - If the root value cannot be rendered
    • renderInlineValue

      public static String renderInlineValue(io.micronaut.json.tree.JsonNode value) throws IOException
      Render a TOML value using inline syntax. TOML inline Table Spec used also by the Table Style function only with scalar values.
      Parameters:
      value - The value to render
      Returns:
      The TOML inline representation
      Throws:
      IOException - If the value cannot be represented in TOML (e.g. a null value)