Class InlineRootEncoder
java.lang.Object
io.micronaut.serde.toml.encodestyle.InlineRootEncoder
Renderer for TOML inline output style.
- Since:
- 3.0.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendInlineDocument(StringBuilder builder, io.micronaut.json.tree.JsonNode value) Append a complete inline-style TOML document.static StringrenderInlineValue(io.micronaut.json.tree.JsonNode value) Render a TOML value using inline syntax.
-
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 buildervalue- The root TOML value- Throws:
IOException- If the root value cannot be rendered
-
renderInlineValue
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)
-